
26 Feb
2009
26 Feb
'09
7:58 a.m.
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 remeber a very nasty bug in spirit because of the cited pattern.) Roland -- _________________________________________ _ _ | Roland Schwarz |_)(_ | aka. speedsnail | \__) | mailto:roland.schwarz@chello.at ________| http://www.blackspace.at