From: Russell Hind (rhind_at_[hidden])
Date: 2003-05-08 08:08:00
Roland Richter wrote:
> It seems to be easy to synchronize variables - see the
> very minimalistic draft below. But what about synchronized
> class methods etc.?
Using the scoped_lock on a mutex (like you have done in the example),
will work for the entire method. The lock isn't freed until the method
exits so you can do as much work as you like in the method, and no other
method will execute until that one has executed provided it creates a
Is that what you mean?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk