Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-03-20 21:29:22


Leon Mergen <leon_at_[hidden]> writes:

> However, as far as I can see, for this approach, a scoped_lock will not
> be the most fantastic solution ? Or am I missing something really
> crucial about the scoped_lock being able to hold a lock outside a
> certain scope ? :)

You can always allocate it on the heap and hold it in a smart pointer.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net