sorry, please ignore this; if you are using a boolean in that way, of
course it also works on MP systems (as opposed to e.g. a counter).
Stefan
o Stefan Sayer [09/28/09 14:10]:
ah, and, contrary to what apparently many people think:
o Bert Fraterman [09/24/09 11:48]:
setStopped() was paired with the setting of a volatile boolean, and in
being "volatile" does not help the boolean much on multi core or multi
processor systems, due to cache. it only tells the compiler to not do
fancy optimization stuff on it. see e.g.
http://software.intel.com/en-us/blogs/2007/11/30/volatile-almost-useless-for-multi-threaded-programming/
Stefan
--
Stefan Sayer
VoIP Services
[email protected]
www.iptego.com
IPTEGO GmbH
Wittenbergplatz 1
10789 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems