[detail] atomic_count operator++ returns different types
24 Jul
2008
24 Jul
'08
6:05 p.m.
Why does the atomic_count ++ operator return a "long" for the win32,solaris and sync compilers, but returns "void" for all gcc compilers? The -- operator returns a "long" in all cases, so this would appear to be an annoying, anomalous behavior. But hopefully a rational explanation exists. Also, if it's the value of the ++ that is wanted, two threads could return the same value of this atomic counter, since another call is required to obtain it for the gcc case. Thank you, Doug
5958
Age (days ago)
5958
Last active (days ago)
0 comments
1 participants
participants (1)
-
Doug Mahlum