Home
last modified time | relevance | path

Searched refs:timed_lock_succeeded (Results 1 – 2 of 2) sorted by relevance

/third_party/boost/libs/thread/test/
Dtest_shared_mutex_timed_locks.cpp36 bool timed_lock_succeeded=rw_mutex.timed_lock_shared(timeout); in BOOST_AUTO_TEST_CASE() local
38 BOOST_CHECK(!timed_lock_succeeded); in BOOST_AUTO_TEST_CASE()
39 if(timed_lock_succeeded) in BOOST_AUTO_TEST_CASE()
46 timed_lock_succeeded=rw_mutex.timed_lock_shared(wait_duration); in BOOST_AUTO_TEST_CASE()
48 BOOST_CHECK(!timed_lock_succeeded); in BOOST_AUTO_TEST_CASE()
49 if(timed_lock_succeeded) in BOOST_AUTO_TEST_CASE()
67 bool timed_lock_succeeded=rw_mutex.timed_lock_shared(timeout); in BOOST_AUTO_TEST_CASE() local
69 BOOST_CHECK(timed_lock_succeeded); in BOOST_AUTO_TEST_CASE()
70 if(timed_lock_succeeded) in BOOST_AUTO_TEST_CASE()
77 timed_lock_succeeded=rw_mutex.timed_lock_shared(wait_duration); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_shared_mutex_timed_locks_chrono.cpp38 bool timed_lock_succeeded=rw_mutex.try_lock_shared_until(timeout); in BOOST_AUTO_TEST_CASE() local
40 BOOST_CHECK(!timed_lock_succeeded); in BOOST_AUTO_TEST_CASE()
41 if(timed_lock_succeeded) in BOOST_AUTO_TEST_CASE()
48 timed_lock_succeeded=rw_mutex.try_lock_shared_for(wait_duration); in BOOST_AUTO_TEST_CASE()
50 BOOST_CHECK(!timed_lock_succeeded); in BOOST_AUTO_TEST_CASE()
51 if(timed_lock_succeeded) in BOOST_AUTO_TEST_CASE()
68 bool timed_lock_succeeded=rw_mutex.try_lock_shared_until(timeout); in BOOST_AUTO_TEST_CASE() local
70 BOOST_CHECK(timed_lock_succeeded); in BOOST_AUTO_TEST_CASE()
71 if(timed_lock_succeeded) in BOOST_AUTO_TEST_CASE()
78 timed_lock_succeeded=rw_mutex.try_lock_shared_for(wait_duration); in BOOST_AUTO_TEST_CASE()
[all …]