Home
last modified time | relevance | path

Searched refs:unblocked_count (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/thread/test/
Dtest_shared_mutex.cpp31 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
43 …ad(locking_thread<boost::shared_lock<boost::shared_mutex> >(rw_mutex,unblocked_count,unblocked_cou… in BOOST_AUTO_TEST_CASE()
49 while(unblocked_count<number_of_threads) in BOOST_AUTO_TEST_CASE()
55 CHECK_LOCKED_VALUE_EQUAL(unblocked_count_mutex,unblocked_count,number_of_threads); in BOOST_AUTO_TEST_CASE()
79 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
91 …ad(locking_thread<boost::unique_lock<boost::shared_mutex> >(rw_mutex,unblocked_count,unblocked_cou… in BOOST_AUTO_TEST_CASE()
97 CHECK_LOCKED_VALUE_EQUAL(unblocked_count_mutex,unblocked_count,1U); in BOOST_AUTO_TEST_CASE()
110 CHECK_LOCKED_VALUE_EQUAL(unblocked_count_mutex,unblocked_count,number_of_threads); in BOOST_AUTO_TEST_CASE()
120 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
131 …ad(locking_thread<boost::shared_lock<boost::shared_mutex> >(rw_mutex,unblocked_count,unblocked_cou… in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_shared_mutex_part_2.cpp27 unsigned& unblocked_count; member in simple_upgrade_thread
37 unblocked_mutex(unblocked_mutex_),unblocked_count(unblocked_count_) in simple_upgrade_thread()
50 ++unblocked_count; in operator ()()
65 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
77 …d(locking_thread<boost::upgrade_lock<boost::shared_mutex> >(rw_mutex,unblocked_count,unblocked_cou… in BOOST_AUTO_TEST_CASE()
83 CHECK_LOCKED_VALUE_EQUAL(unblocked_count_mutex,unblocked_count,1U); in BOOST_AUTO_TEST_CASE()
96 CHECK_LOCKED_VALUE_EQUAL(unblocked_count_mutex,unblocked_count,number_of_threads); in BOOST_AUTO_TEST_CASE()
105 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
119 …ad(locking_thread<boost::shared_lock<boost::shared_mutex> >(rw_mutex,unblocked_count,unblocked_cou… in BOOST_AUTO_TEST_CASE()
123 …d(locking_thread<boost::upgrade_lock<boost::shared_mutex> >(rw_mutex,unblocked_count,unblocked_cou… in BOOST_AUTO_TEST_CASE()
[all …]
Dshared_mutex_locking_thread.hpp19 unsigned& unblocked_count; member in locking_thread
34 unblocked_count(unblocked_count_), in locking_thread()
54 ++unblocked_count; in operator ()()
79 unsigned& unblocked_count; member in simple_writing_thread
89 unblocked_mutex(unblocked_mutex_),unblocked_count(unblocked_count_) in simple_writing_thread()
102 ++unblocked_count; in operator ()()
114 unsigned& unblocked_count; member in simple_reading_thread
124 unblocked_mutex(unblocked_mutex_),unblocked_count(unblocked_count_) in simple_reading_thread()
137 ++unblocked_count; in operator ()()
Dtest_shared_mutex_timed_locks.cpp27 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
29 …boost::thread writer(simple_writing_thread(rw_mutex,finish_mutex,unblocked_mutex,unblocked_count)); in BOOST_AUTO_TEST_CASE()
31 CHECK_LOCKED_VALUE_EQUAL(unblocked_mutex,unblocked_count,1u); in BOOST_AUTO_TEST_CASE()
92 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
94 …boost::thread reader(simple_reading_thread(rw_mutex,finish_mutex,unblocked_mutex,unblocked_count)); in BOOST_AUTO_TEST_CASE()
96 CHECK_LOCKED_VALUE_EQUAL(unblocked_mutex,unblocked_count,1u); in BOOST_AUTO_TEST_CASE()
128 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
130 …boost::thread writer(simple_writing_thread(rw_mutex,finish_mutex,unblocked_mutex,unblocked_count)); in BOOST_AUTO_TEST_CASE()
132 CHECK_LOCKED_VALUE_EQUAL(unblocked_mutex,unblocked_count,1u); in BOOST_AUTO_TEST_CASE()
193 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
[all …]
Dtest_shared_mutex_timed_locks_chrono.cpp29 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
31 …boost::thread writer(simple_writing_thread(rw_mutex,finish_mutex,unblocked_mutex,unblocked_count)); in BOOST_AUTO_TEST_CASE()
33 CHECK_LOCKED_VALUE_EQUAL(unblocked_mutex,unblocked_count,1u); in BOOST_AUTO_TEST_CASE()
93 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
95 …boost::thread reader(simple_reading_thread(rw_mutex,finish_mutex,unblocked_mutex,unblocked_count)); in BOOST_AUTO_TEST_CASE()
97 CHECK_LOCKED_VALUE_EQUAL(unblocked_mutex,unblocked_count,1u); in BOOST_AUTO_TEST_CASE()
128 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
130 …boost::thread writer(simple_writing_thread(rw_mutex,finish_mutex,unblocked_mutex,unblocked_count)); in BOOST_AUTO_TEST_CASE()
132 CHECK_LOCKED_VALUE_EQUAL(unblocked_mutex,unblocked_count,1u); in BOOST_AUTO_TEST_CASE()
192 unsigned unblocked_count=0; in BOOST_AUTO_TEST_CASE() local
[all …]