Home
last modified time | relevance | path

Searched refs:shared_mutex (Results 1 – 25 of 127) sorted by relevance

123456

/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/
Dmove_assign_pass.cpp26 boost::shared_mutex m0;
27 boost::shared_mutex m1;
32 boost::shared_lock<boost::shared_mutex> lk0(m0); in main()
33 boost::shared_lock<boost::shared_mutex> lk1(m1); in main()
42 boost::shared_lock<boost::shared_mutex> lk1; in main()
43 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::shared_lock<boost::shared_mutex>(m0)); in main()
48 boost::unique_lock<boost::shared_mutex> lk0(m0); in main()
49 boost::shared_lock<boost::shared_mutex> lk1(m1); in main()
50 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::shared_lock<boost::shared_mutex>(boost::move(lk0))); in main()
58 boost::shared_lock<boost::shared_mutex> lk1; in main()
[all …]
Dmove_ctor_unique_lock_pass.cpp26 boost::shared_mutex m;
32 boost::unique_lock<boost::shared_mutex> lk0(m); in main()
33 boost::shared_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
40 boost::shared_lock<boost::shared_mutex> lk( (boost::unique_lock<boost::shared_mutex>(m))); in main()
45 boost::unique_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
46 boost::shared_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
53 boost::unique_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
55 boost::shared_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
Dmove_ctor_upgrade_lock_pass.cpp26 boost::shared_mutex m;
32 boost::upgrade_lock<boost::shared_mutex> lk0(m); in main()
33 boost::shared_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
40 boost::shared_lock<boost::shared_mutex> lk( (boost::upgrade_lock<boost::shared_mutex>(m))); in main()
45 boost::upgrade_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
46 boost::shared_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
53 boost::upgrade_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
55 boost::shared_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
Dmove_ctor_pass.cpp26 boost::shared_mutex m;
31 boost::shared_lock<boost::shared_mutex> lk0(m); in main()
32 boost::shared_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
39 …boost::shared_lock<boost::shared_mutex> lk( (BOOST_THREAD_MAKE_RV_REF(boost::shared_lock<boost::sh… in main()
Dtry_to_lock_pass.cpp27 boost::shared_mutex m;
47 boost::shared_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
51 boost::shared_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
55 boost::shared_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
60 boost::shared_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
82 boost::shared_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/
Dmove_assign_pass.cpp26 boost::shared_mutex m0;
27 boost::shared_mutex m1;
32 boost::upgrade_lock<boost::shared_mutex> lk0(m0); in main()
33 boost::upgrade_lock<boost::shared_mutex> lk1(m1); in main()
42 boost::upgrade_lock<boost::shared_mutex> lk1; in main()
43 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::upgrade_lock<boost::shared_mutex>(m0)); in main()
48 boost::unique_lock<boost::shared_mutex> lk0(m0); in main()
49 boost::upgrade_lock<boost::shared_mutex> lk1(m1); in main()
50 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::upgrade_lock<boost::shared_mutex>(boost::move(lk0))); in main()
58 boost::upgrade_lock<boost::shared_mutex> lk1; in main()
[all …]
Dmove_ctor_shared_lock_for_pass.cpp31 boost::shared_mutex m;
36 boost::shared_lock<boost::shared_mutex> lk0(m); in main()
37 boost::upgrade_lock<boost::shared_mutex> lk(boost::move(lk0), boost::chrono::milliseconds(1)); in main()
44 boost::upgrade_lock<boost::shared_mutex> in main()
45 lk(boost::shared_lock<boost::shared_mutex>(m), boost::chrono::milliseconds(1)); in main()
50 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
51 boost::upgrade_lock<boost::shared_mutex> lk(boost::move(lk0), boost::chrono::milliseconds(1)); in main()
58 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
60 boost::upgrade_lock<boost::shared_mutex> lk(boost::move(lk0), boost::chrono::milliseconds(1)); in main()
Dmove_ctor_shared_lock_try_pass.cpp29 boost::shared_mutex m;
34 boost::shared_lock<boost::shared_mutex> lk0(m); in main()
35 boost::upgrade_lock<boost::shared_mutex> lk(boost::move(lk0), boost::try_to_lock ); in main()
42 …boost::upgrade_lock<boost::shared_mutex> lk(boost::shared_lock<boost::shared_mutex>(m), boost::try… in main()
47 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
48 boost::upgrade_lock<boost::shared_mutex> lk(boost::move(lk0), boost::try_to_lock); in main()
55 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
57 boost::upgrade_lock<boost::shared_mutex> lk(boost::move(lk0), boost::try_to_lock); in main()
Dmove_ctor_shared_lock_until_pass.cpp31 boost::shared_mutex m;
36 boost::shared_lock<boost::shared_mutex> lk0(m); in main()
37 …boost::upgrade_lock<boost::shared_mutex> lk( boost::move(lk0), boost::chrono::steady_clock::now()+… in main()
44 boost::upgrade_lock<boost::shared_mutex> in main()
45 …lk( boost::shared_lock<boost::shared_mutex>(m), boost::chrono::steady_clock::now()+boost::chrono::… in main()
50 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
51 …boost::upgrade_lock<boost::shared_mutex> lk( boost::move(lk0), boost::chrono::steady_clock::now()+… in main()
58 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
60 …boost::upgrade_lock<boost::shared_mutex> lk( boost::move(lk0), boost::chrono::steady_clock::now()+… in main()
Dmove_ctor_pass.cpp26 boost::shared_mutex m;
31 boost::upgrade_lock<boost::shared_mutex> lk0(m); in main()
32 boost::upgrade_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
39 …boost::upgrade_lock<boost::shared_mutex> lk( (BOOST_THREAD_MAKE_RV_REF(boost::upgrade_lock<boost:: in main()
Dmove_ctor_unique_lock_pass.cpp26 boost::shared_mutex m;
31 boost::unique_lock<boost::shared_mutex> lk0(m); in main()
32 boost::upgrade_lock<boost::shared_mutex> lk( (boost::move(lk0))); in main()
39 boost::upgrade_lock<boost::shared_mutex> lk( (boost::unique_lock<boost::shared_mutex>(m))); in main()
Dtry_to_lock_pass.cpp28 boost::shared_mutex m;
48 boost::upgrade_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
52 boost::upgrade_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
56 boost::upgrade_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
61 boost::upgrade_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
84 boost::upgrade_lock<boost::shared_mutex> lk(m, boost::try_to_lock); in f()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/mod/
Drelease_pass.cpp24 struct shared_mutex struct
38 int shared_mutex::lock_count = 0; argument
39 int shared_mutex::unlock_count = 0;
41 shared_mutex m;
45 boost::shared_lock<shared_mutex> lk(m); in main()
48 BOOST_TEST(shared_mutex::lock_count == 1); in main()
49 BOOST_TEST(shared_mutex::unlock_count == 0); in main()
53 BOOST_TEST(shared_mutex::lock_count == 1); in main()
54 BOOST_TEST(shared_mutex::unlock_count == 0); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/mod/
Drelease_pass.cpp24 struct shared_mutex struct
38 int shared_mutex::lock_count = 0; argument
39 int shared_mutex::unlock_count = 0;
41 shared_mutex m;
45 boost::upgrade_lock<shared_mutex> lk(m); in main()
48 BOOST_TEST(shared_mutex::lock_count == 1); in main()
49 BOOST_TEST(shared_mutex::unlock_count == 0); in main()
53 BOOST_TEST(shared_mutex::lock_count == 1); in main()
54 BOOST_TEST(shared_mutex::unlock_count == 0); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/
Dmove_ctor_shared_lock_try_pass.cpp29 boost::shared_mutex m;
34 boost::shared_lock<boost::shared_mutex> lk0(m); in main()
35 boost::unique_lock<boost::shared_mutex> lk(boost::move(lk0), boost::try_to_lock ); in main()
42 …boost::unique_lock<boost::shared_mutex> lk(boost::shared_lock<boost::shared_mutex>(m), boost::try_… in main()
47 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
48 boost::unique_lock<boost::shared_mutex> lk(boost::move(lk0), boost::try_to_lock); in main()
55 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
57 boost::unique_lock<boost::shared_mutex> lk(boost::move(lk0), boost::try_to_lock); in main()
Dmove_ctor_shared_lock_for_pass.cpp31 boost::shared_mutex m;
36 boost::shared_lock<boost::shared_mutex> lk0(m); in main()
37 boost::unique_lock<boost::shared_mutex> lk(boost::move(lk0), boost::chrono::milliseconds(1)); in main()
44 boost::unique_lock<boost::shared_mutex> in main()
45 lk(boost::shared_lock<boost::shared_mutex>(m), boost::chrono::milliseconds(1)); in main()
50 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
51 boost::unique_lock<boost::shared_mutex> lk(boost::move(lk0), boost::chrono::milliseconds(1)); in main()
58 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
60 boost::unique_lock<boost::shared_mutex> lk(boost::move(lk0), boost::chrono::milliseconds(1)); in main()
Dmove_ctor_shared_lock_until_pass.cpp31 boost::shared_mutex m;
36 boost::shared_lock<boost::shared_mutex> lk0(m); in main()
37 …boost::unique_lock<boost::shared_mutex> lk( boost::move(lk0), boost::chrono::steady_clock::now()+b… in main()
44 boost::unique_lock<boost::shared_mutex> in main()
45 …lk( boost::shared_lock<boost::shared_mutex>(m), boost::chrono::steady_clock::now()+boost::chrono::… in main()
50 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
51 …boost::unique_lock<boost::shared_mutex> lk( boost::move(lk0), boost::chrono::steady_clock::now()+b… in main()
58 boost::shared_lock<boost::shared_mutex> lk0(m, boost::defer_lock); in main()
60 …boost::unique_lock<boost::shared_mutex> lk( boost::move(lk0), boost::chrono::steady_clock::now()+b… in main()
/third_party/boost/libs/thread/test/
Dtest_shared_mutex_part_2.cpp24 boost::shared_mutex& rwm;
32 simple_upgrade_thread(boost::shared_mutex& rwm_, in simple_upgrade_thread()
46 boost::upgrade_lock<boost::shared_mutex> lk(rwm); in operator ()()
64 boost::shared_mutex rw_mutex; in BOOST_AUTO_TEST_CASE()
77 …pool.create_thread(locking_thread<boost::upgrade_lock<boost::shared_mutex> >(rw_mutex,unblocked_co… in BOOST_AUTO_TEST_CASE()
104 boost::shared_mutex rw_mutex; in BOOST_AUTO_TEST_CASE()
119 …pool.create_thread(locking_thread<boost::shared_lock<boost::shared_mutex> >(rw_mutex,unblocked_cou… in BOOST_AUTO_TEST_CASE()
123 …pool.create_thread(locking_thread<boost::upgrade_lock<boost::shared_mutex> >(rw_mutex,unblocked_co… in BOOST_AUTO_TEST_CASE()
151 boost::shared_mutex mtx; in BOOST_AUTO_TEST_CASE()
152 boost::upgrade_lock<boost::shared_mutex> l(mtx); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_shared_mutex.cpp8 #define BOOST_TEST_MODULE Boost.Threads: shared_mutex test suite
30 boost::shared_mutex rw_mutex; in BOOST_AUTO_TEST_CASE()
43 …pool.create_thread(locking_thread<boost::shared_lock<boost::shared_mutex> >(rw_mutex,unblocked_cou… in BOOST_AUTO_TEST_CASE()
78 boost::shared_mutex rw_mutex; in BOOST_AUTO_TEST_CASE()
91 …pool.create_thread(locking_thread<boost::unique_lock<boost::shared_mutex> >(rw_mutex,unblocked_cou… in BOOST_AUTO_TEST_CASE()
119 boost::shared_mutex rw_mutex; in BOOST_AUTO_TEST_CASE()
131 …pool.create_thread(locking_thread<boost::shared_lock<boost::shared_mutex> >(rw_mutex,unblocked_cou… in BOOST_AUTO_TEST_CASE()
141 …pool.create_thread(locking_thread<boost::unique_lock<boost::shared_mutex> >(rw_mutex,unblocked_cou… in BOOST_AUTO_TEST_CASE()
166 boost::shared_mutex rw_mutex; in BOOST_AUTO_TEST_CASE()
167 boost::unique_lock<boost::shared_mutex> write_lock(rw_mutex); in BOOST_AUTO_TEST_CASE()
[all …]
Dshared_mutex_locking_thread.hpp18 boost::shared_mutex& rw_mutex;
26 locking_thread(boost::shared_mutex& rw_mutex_, in locking_thread()
76 boost::shared_mutex& rwm;
84 simple_writing_thread(boost::shared_mutex& rwm_, in simple_writing_thread()
98 boost::unique_lock<boost::shared_mutex> lk(rwm); in operator ()()
111 boost::shared_mutex& rwm;
119 simple_reading_thread(boost::shared_mutex& rwm_, in simple_reading_thread()
133 boost::shared_lock<boost::shared_mutex> lk(rwm); in operator ()()
/third_party/boost/boost/thread/v2/
Dshared_mutex.hpp166 class shared_mutex class
215 shared_mutex(shared_mutex const&);
216 shared_mutex& operator=(shared_mutex const&);
219 shared_mutex();
220 ~shared_mutex();
263 inline shared_mutex::shared_mutex() in shared_mutex() function in boost::thread_v2::shared_mutex
268 inline shared_mutex::~shared_mutex() in ~shared_mutex()
275 inline void shared_mutex::lock() in lock()
278 gate1_.wait(lk, boost::bind(&shared_mutex::no_writer, boost::ref(*this))); in lock()
280 gate2_.wait(lk, boost::bind(&shared_mutex::no_readers, boost::ref(*this))); in lock()
[all …]
/third_party/boost/boost/thread/detail/
Dthread_group.hpp43 boost::shared_lock<shared_mutex> guard(m); in is_this_thread_in()
59 boost::shared_lock<shared_mutex> guard(m); in is_thread_in()
78 boost::lock_guard<shared_mutex> guard(m); in create_thread()
92 boost::lock_guard<shared_mutex> guard(m); in add_thread()
99 boost::lock_guard<shared_mutex> guard(m); in remove_thread()
112 boost::shared_lock<shared_mutex> guard(m); in join_all()
126 boost::shared_lock<shared_mutex> guard(m); in interrupt_all()
139 boost::shared_lock<shared_mutex> guard(m); in size()
145 mutable shared_mutex m;
/third_party/boost/libs/log/src/windows/
Dlight_rw_mutex.cpp66 … (sizeof(shared_mutex) + BOOST_LOG_CPU_CACHE_LINE_SIZE - 1u) / BOOST_LOG_CPU_CACHE_LINE_SIZE
72 new (mtx->p) shared_mutex();
77 static_cast< shared_mutex* >(mtx->p)->~shared_mutex();
84 static_cast< shared_mutex* >(mtx->p)->lock();
89 static_cast< shared_mutex* >(mtx->p)->lock_shared();
94 static_cast< shared_mutex* >(mtx->p)->unlock();
99 static_cast< shared_mutex* >(mtx->p)->unlock_shared();
/third_party/boost/boost/geometry/srs/
Dshared_grids_boost.hpp31 boost::shared_lock<boost::shared_mutex> lock(mutex); in size()
37 boost::shared_lock<boost::shared_mutex> lock(mutex); in empty()
54 boost::shared_lock<boost::shared_mutex> lock;
67 boost::unique_lock<boost::shared_mutex> lock;
72 mutable boost::shared_mutex mutex;
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/
Dcopy_ctor_fail.cpp26 boost::shared_mutex m0;
27 boost::shared_mutex m1;
31 boost::shared_lock_guard<boost::shared_mutex> lk0(m0); in main()
32 boost::shared_lock_guard<boost::shared_mutex> lk1 = lk0; in main()

123456