Boost logo

Boost :

From: Jason Hise (chaos_at_[hidden])
Date: 2005-09-13 13:03:36


John Maddock wrote:

>It's possible to do what you want with call_once, but it's one of those
>things you might think is impossible until someone shows you how, and then
>it's embarrassingly easy, see
>http://lists.boost.org/Archives/boost/2005/07/90756.php for an explanation.
>
In that example, where is the once_flag located? I would think that a
similar race condition problem would exist when constructing and/or
initializing that once_flag with BOOST_ONCE_INIT.

-Jason


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