|
Boost Users : |
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.
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