
28 Jun
2004
28 Jun
'04
4:54 a.m.
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@torjo.com -- http://www.torjo.com/logview/ - viewing/filtering logs is just too easy!