
27 Jan
2010
27 Jan
'10
7:42 p.m.
AMDG Andrew Chinkoff wrote:
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 don't understand what you mean by "atomically."
I mean "atomic" foo performance but not "mutex'ed".
I can't parse this sentence. In Christ, Steven Watanabe