|
Boost : |
From: Anthony Williams (anthwil_at_[hidden])
Date: 2002-08-08 06:22:59
> From: William E. Kempf [mailto:williamkempf_at_[hidden]]
> Sent: 07 August 2002 15:34
> From: "Anthony Williams" <anthwil_at_[hidden]>
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk