11 Jul
2008
11 Jul
'08
6:37 a.m.
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.