26 Jan
2006
26 Jan
'06
7:18 p.m.
boost::try_mutex M1, M2; boost::try_mutex::scoped_try_lock lockx(M1, false); boost::try_mutex::scoped_try_lock locky(M2, false); I would like to be able to atomically check that at least one lock can be made: assert(lockx.try_lock() || locky.try_lock()); In Win32 I would use WaitForMultipleObjects. Thanks in advance.