From: John Maddock (john_at_[hidden])
Date: 2005-09-13 11:29:12
> Calls through call_once are only atomic with respect to other calls that
> reference the same once_flag. If you want mutual exclusion, you need a
> mutex --- why not just create a function-local static mutex, lock it
> your function call, and unlock it afterwards?
I hope not! There will be a race condition in the construction of the
function-scope static mutex.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk