|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-20 08:55:13
From: "Alexander Terekhov" <terekhov_at_[hidden]>
> > [1] No atomic_t, why?
>
> http://groups.google.com/groups?as_umsgid=3AFA6932.4EADD8BB%40web.de
> http://groups.google.com/groups?as_umsgid=3B016AF0.5E55E7A1%40web.de
I think that on win32, Interlocked* is supposed to be safe on multiple
processors. On platforms that don't have atomic primitives an atomic_t will
simply be a (mutex, long) pair.
As it stands, to make shared_ptr thread safe, I have to roll my own
atomic_t.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk