> From: William E. Kempf [mailto:williamkempf@hotmail.com]
> Sent: 07 August 2002 15:34
> From: "Anthony Williams" <anthwil@nortelnetworks.com>
> Sent: Wednesday, August 07, 2002 4:06 AM
> > For win32, you just lazy init using named mutexes (named
> after the address
> > of the mutex, and the process id, or something like that). To avoid
> multiple
> > calls to CreateMutex, you could use some flags, and the
> InterlockedXXX
> > functions:
>
> In other words, the implementation already found in
> boost::call_once.
Except actually doing the memory barrier work, using InterlockedExchange, rather than with comments ;-)
Anthony