Boost logo

Boost :

Subject: Re: [boost] [Boost.utility]
From: Andrew Chinkoff (achinkoff_at_[hidden])
Date: 2010-01-27 14:28:41


> 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.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk