Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-05-20 08:32:18


Of course it's not thread-safe. But then there's no way to portably
construct a singleton instance on demand if two threads may demand it at the
same time, is there?

Somebody get me some portable threading primitives! ;)

-Dave

----- Original Message -----
From: "John Maddock" <John_Maddock_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, May 20, 2000 6:21 AM
Subject: Singleton interface (was: Re: [boost] pool)

> Dave,
>
> Just to point out that the following snippet is not thread safe - this may
> or may not be a problem - see the recent discussion on
> comp.lang.c++.moderated (I think it was "thread safe singleton").


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