
26 Feb
2009
26 Feb
'09
4:05 p.m.
Roland Schwarz wrote:
Anthony Williams wrote:
Yes. That's exactly the intended usage. Only the thread that calls reset() can access the object passed in.
Does this mean you have solved the initialization problem for local statics? i.e. you made this thread-safe for every compiler?
I think any time you see a naked local static, you've gotta think bug because the only portable way to solve this problem is to use boost::call_once, afaik anyway. -- Sohail Somani http://uint32t.blogspot.com