$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.