Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-05-09 07:55:56


Kirit Sælensminde wrote:

> // Notify joins
> boost::mutex::scoped_lock lock( m_mutex );
> j->first->m_completed = true;
> j->first->m_control.notify_all();

Are you sure that you want to lock m_mutex here and not j->first->m_mutex?
(Also applies to the catch clauses.)


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