From: William E. Kempf (williamkempf_at_[hidden])
Date: 2002-08-07 10:18:59


----- Original Message -----
From: "Anthony Williams" <anthwil_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, August 07, 2002 5:42 AM
Subject: RE: [boost] Re: Enhanced call_once()

> I know --- I use pthreads-win32 at work. However, I wouldn't want to
impose
> the requirement that every user of Boost Threads also install
> pthreads-win32.
>
> OTOH, it might be worth checking out their implementation of statically
> initialized mutexes, since they use Win32 Semaphores and Critical Sections
> rather than Win32 Mutexes.
>
> However, I'm not sure we want POSIX semantics --- it poses an unnecessary
> burden on the users to have to specify a static initializer or call a
> dynamic init function, it is much preferable to just have Mutex() do the
> Right Thing in all cases.

Which can't be done. Constructor calls are not thread safe.

Bill Kempf