$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: John Torjo (john.lists_at_[hidden])
Date: 2004-06-27 23:54:35
Batov, Vladimir wrote:
>
> class writer_lock : public boost::mutex::scoped_lock
> {
> typedef boost::mutex::scoped_lock super;
>
> public:
>
> writer_lock(rw_mutex& mutex) : super(mutex.mutex_), mutex_(mutex)
> {
> ++mutex_.num_writers_; // Make new readers wait.
^^^^
just curios, shouldn't this be thread-safe?
Best,
John
-- John Torjo Freelancer -- john_at_[hidden] -- http://www.torjo.com/logview/ - viewing/filtering logs is just too easy!