Boost logo

Boost :

From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2008-01-15 20:41:10

On Tuesday 15 January 2008 20:03, Phil Endecott wrote:
> 1. There's no "un-synchronised" version, for use in single-threaded
> programs or when all (first) accesses come from the same thread.

I took the bit in the documentation saying "implementing identical behavior
in a single-threaded environment" to mean they are all un-synchronised, if
you compile for example using gcc without the -pthread option.

> 2. The "mutexed access" feature can be useful in situation other than
> singletons; can't something more general-purpose be provided? I use a
> template class Lockable<T> which grants reader/writer-exclusive access
> to a contained T. (Reader/writer locking could be useful here.) (It
> might be useful to make the mutex type a template parameter, with a
> sensible default; I have a few mutexes of my own, with a
> boost::mutex-compatible interface.)

Is any of this available publically, or documentation for it available


Boost list run by bdawes at, gregod at, cpdaniel at, john at