$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.