|
Boost Users : |
From: Terence Wilson (tez_at_[hidden])
Date: 2006-01-26 14:18:26
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.
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