|
|
|
|
|
by thequux
263 days ago
|
|
I think that this can change the semantics though; with the preceding check you can miss the shared variable being decremented from another thread. In some cases, such as if the shared value is monotonic, this is done, but not in the general case. |
|