From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2008-01-16 03:17:46
Frank Mori Hess wrote:
> On Monday 14 January 2008 12:10 pm, John Torjo wrote:
>> |- boost::mutexed_singleton| : additionally ensures that concurrent
>> access to the instance is mutually exclusive. In other words, only one
>> thread can access the instance at a given time.
> This seems like a combination of two independent ideas: a singleton and a
Anything global begs for synchronization in multi-threaded context.
So, yes for the "monitor" part (using the scientific definition not the
one used by the Java programming language) and no for the "independent"
part of your sentence.
The dependency between the two is an unidirectional one, though. As
synchronization makes sense without a Singleton but not vice versa (that
is given a multi-threaded environment).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk