||Implementing Mutual Exclusion for AJAX|
|Subject:||Still a race-condition?|
Response to: Still a race-condition?
For those worried that the increment operator is not atomic, one could replace it with a large random large number which would make the odds of failure small (e.g. one in 4 billion) and known.
I guess it depends on which operation one has the least paranoia about. :-)