Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-05-21 05:27:43


Dave,

>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! ;)
<

Quite.

There is also an interesting article at
http://lib.stat.cmu.edu/~lamj/sigs/c++-report/cppr9606.c.vlissides.html by
John Vlissides, unfortunately it contains more problems than solutions -
but is probably essential reading if only to see what all the traps and
pitfalls are!

- John.


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