[Boost-users] [detail] atomic_count operator++ returns diffe…

Top Page

Reply to this message
Author: Doug Mahlum
Date:  
To: boost-users
Subject: [Boost-users] [detail] atomic_count operator++ returns different types
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

_______________________________________________
Boost-users mailing list
Boost-users@???
http://lists.boost.org/mailman/listinfo.cgi/boost-users