Boost logo

Boost :

Subject: [boost] boost::atomic<T> foo;
From: Janek Kozicki (janek_listy_at_[hidden])
Date: 2008-09-20 13:59:14


Hi,

I looked through Boost.Threads and Boost.Interprocess libraries, but
(as far as I can tell) none of them offers me simple:

  class Foo {
    boost::atomic<int> bar;
  }

which would mean that *ALL* attempts to access bar would be atomic,
eg. bar=10;

Am I left with troublesome usage of boost::mutex to block all that
access attempts by myself?

-- 
Janek Kozicki                                                         |

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