|
Boost : |
Subject: Re: [boost] Thread-safe singleton pattern
From: Dmitry Goncharov (dgoncharov_at_[hidden])
Date: 2010-01-26 08:32:34
Helge Bahmann wrote:
>
> see e.g.
>
> http://www.chaoticmind.net/~hcb/projects/boost.atomic/doc/atomic/usage_examples.html#boost_atomic.usage_examples.singleton
>
>
> for a correct one, using Boost.Atomic
>
Is *delete* missing intentionally?
Does boost::atomic::load() or oost::atomic::store() fall back to locking
a mutex on any platform?
BR, Dmitry
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk