Boost logo

Boost Users :

Subject: [Boost-users] Mutex is always blocking
From: Jean-Sebastien Stoezel (js.stoezel_at_[hidden])
Date: 2008-10-06 10:33:26


Hello,

Is there a specific way of initializing the boost::mutex objects? Here
is the sequence I have been using:

Instantiation of the mutex
boost::mutex m_CmdMutex;

Then try to lock it
m_CmdMutex.lock();

It looks like every time I try to lock a mutex I lock my thread.
Anything else needs to be done?

Thanks,
Jean


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