
27 Jan
2010
27 Jan
'10
7:28 p.m.
When call_once returns it is guaranteed that foo has run to completion exactly once. If two thread run it in parallel one of them will block while the other runs foo.
Ok, I ask again specifically: Does boost::once ensure that called function will be performed "atomically" rather than "mutually excluded"? I mean "atomic" foo performance but not "mutex'ed". Best, Andrew -- View this message in context: http://old.nabble.com/-Boost.utility--tp27309940p27345500.html Sent from the Boost - Dev mailing list archive at Nabble.com.