Boost logo

Boost :

Subject: Re: [boost] [Boost.utility]
From: Andrew Chinkoff (achinkoff_at_[hidden])
Date: 2010-01-27 13:55:31

Frank Mori Hess wrote:

> You should use boost::once to initialize the singleton object.

Does boost::once ensure that called function will be performed atomically?

That is what I mean:

A* pa = NULL;
void foo(){ pa = new A(); }
boost::call_once(foo, flag);

Question: Is it true that "pa" will be allocated atomically?


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at