$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] test boost::try_mutex is locked or not
From: Boost lzw (boostlzw_at_[hidden])
Date: 2009-07-25 23:23:42
Hi everyone,
I just did not find the right member function for it. Can anyone point out
the correct function I should use? Thanks.
CODE:
-----------
boost::try_mutex resourceX;
boost::try_mutex::scoped_lock lockX(resourceX);
...
if(lockX.locked() == false) // compilation error
do sth.
-----------
The compiler complains that locked() is not a member function of
boost::try_mutex
Cheers,
Robert