Boost logo

Boost :

Subject: Re: [boost] [filesystem] path thread safety fix impact on POSIX systems
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-01-01 02:56:35


On Saturday, December 31, 2011 18:20:54 Beman Dawes wrote:
> On Sat, Dec 31, 2011 at 4:00 AM, Andrey Semashev
>
> That really shouldn't be necessary. Also, I'm trying to hold down
> dependencies on other libraries, or anything that is C++11 only.

Call once mechanism is easy to implement on top of pthread_call_once and
atomic_count (or only atomic_count, if we rely on the fact that namespace-
scope dynamic initializations are thread-safe). That won't introduce any
dependencies except for pthreads, which you depend on already I assume.


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