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