
4 Sep
2005
4 Sep
'05
7:43 a.m.
"Peter Dimov" <pdimov@mmltd.net> writes:
Greer, Joe wrote:
Yes, but it could have been a class static as easily and have the same performance.
There is no guarantee that the class static initialization precedes the first call to call_once.
In case it isn't obvious, I think Peter is saying you still have a thread safety problem that can't be brushed off by saying "it could have been a class static..." -- Dave Abrahams Boost Consulting www.boost-consulting.com