[cpp-threads] Globals and Threads

Andrei Alexandrescu andrei at metalanguage.com
Tue Oct 25 07:31:30 BST 2005


Peter Dimov wrote:
> work... no, not with a bool. Either way, this basically reinvents 
> pthread_once.

Yes. My point was to wrap (in a hurry, indeed) pthread_once in an easy 
to use idiom (that also doesn't require syntactic changes) for 
thread-safe static initialization.

Andrei



More information about the cpp-threads mailing list