Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-07 07:56:23


From: "Anthony Williams" <anthwil_at_[hidden]>
> > Is this possible? Without language/memory architecture
> > support, I mean.
>
> See my other post for Win32Mutex and POSIXMutex skeletons that just have a
> default constructor.
>
> My point is that you can have thread-safe lazy dynamic initialization,
which
> works for static objects without causing init-order problems, if you use
the
> appropriate primitives for each platform. On POSIX, pthread_once provides
> such a mechanism;

pthread_once takes a single void (*) (), there is no way to pass arguments,
like the address of the mutex being initialized.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk