Boost logo

Boost Users :

From: Adam Nielsen (adam.nielsen_at_[hidden])
Date: 2008-07-11 02:37:35


> I tried passing around references to the mutex instead, but this just
> triggers an assertion failure when I try to lock it.

Oh my bad, I just realised the function I'm trying to protect was
failing, causing the main code to terminate early...which of course
resulted in the mutex being destroyed, while the threads were still
using it...

It looks like it all works fine passing around references to the same
boost::mutex object.

Sorry for the noise!

Cheers,
Adam.


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