$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Igor R (boost.lists_at_[hidden])
Date: 2008-08-05 04:52:57
Hello,
This's rather basic question, but I couldn't find any example in the docs.
typedef boost::shared_lock<boost::shared_mutex> shared_lock;
shared_mutex mutex_;
///
{
shared_lock lock(mutex_);
// reading locked data...
// here I want to midify the data, how can I upgrade the lock to be exclusive?
}
Thank you in advance.