Boost threads- how do I simultaneously check the lock on two or more mutexes?
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.
6868
Age (days ago)
6868
Last active (days ago)
0 comments
1 participants
participants (1)
-
Terence Wilson