Home
last modified time | relevance | path

Searched refs:lk1 (Results 1 – 25 of 45) sorted by relevance

12

/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/
Dmove_assign_pass.cpp33 boost::shared_lock<boost::shared_mutex> lk1(m1); in main() local
34 lk1 = boost::move(lk0); in main()
35 BOOST_TEST(lk1.mutex() == &m0); in main()
36 BOOST_TEST(lk1.owns_lock() == true); in main()
42 boost::shared_lock<boost::shared_mutex> lk1; in main() local
43 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::shared_lock<boost::shared_mutex>(m0)); in main()
44 BOOST_TEST(lk1.mutex() == &m0); in main()
45 BOOST_TEST(lk1.owns_lock() == true); in main()
49 boost::shared_lock<boost::shared_mutex> lk1(m1); in main() local
50 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::shared_lock<boost::shared_mutex>(boost::move(lk0))); in main()
[all …]
Dcopy_assign_fail.cpp31 boost::shared_lock<boost::shared_mutex> lk1(m1); in main() local
32 lk1 = lk0; in main()
33 BOOST_TEST(lk1.mutex() == &m0); in main()
34 BOOST_TEST(lk1.owns_lock() == true); in main()
Dcopy_ctor_fail.cpp32 boost::shared_lock<boost::shared_mutex> lk1 = lk0; in main() local
33 BOOST_TEST(lk1.mutex() == &m1); in main()
34 BOOST_TEST(lk1.owns_lock() == true); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/
Dmove_assign_pass.cpp33 boost::upgrade_lock<boost::shared_mutex> lk1(m1); in main() local
34 lk1 = boost::move(lk0); in main()
35 BOOST_TEST(lk1.mutex() == &m0); in main()
36 BOOST_TEST(lk1.owns_lock() == true); in main()
42 boost::upgrade_lock<boost::shared_mutex> lk1; in main() local
43 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::upgrade_lock<boost::shared_mutex>(m0)); in main()
44 BOOST_TEST(lk1.mutex() == &m0); in main()
45 BOOST_TEST(lk1.owns_lock() == true); in main()
49 boost::upgrade_lock<boost::shared_mutex> lk1(m1); in main() local
50 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::upgrade_lock<boost::shared_mutex>(boost::move(lk0))); in main()
[all …]
Dcopy_assign_fail.cpp31 boost::upgrade_lock<boost::shared_mutex> lk1(m1); in main() local
32 lk1 = lk0; in main()
33 BOOST_TEST(lk1.mutex() == &m0); in main()
34 BOOST_TEST(lk1.owns_lock() == true); in main()
Dcopy_ctor_fail.cpp32 boost::upgrade_lock<boost::shared_mutex> lk1(lk0); in main() local
33 BOOST_TEST(lk1.mutex() == &m1); in main()
34 BOOST_TEST(lk1.owns_lock() == true); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/obs/
Dop_bool_pass.cpp32 boost::unique_lock<boost::mutex> lk1(m); in main() local
33 BOOST_TEST(bool(lk1) == true); in main()
34 lk1.unlock(); in main()
35 BOOST_TEST(bool(lk1) == false); in main()
41 boost::unique_lock<boost::mutex> lk1(m); in main() local
42 if (!lk1) BOOST_TEST(false); in main()
43 lk1.unlock(); in main()
44 if (lk1) BOOST_TEST(false); in main()
Downs_lock_pass.cpp32 boost::unique_lock<boost::mutex> lk1(m); in main() local
33 BOOST_TEST(lk1.owns_lock() == true); in main()
34 lk1.unlock(); in main()
35 BOOST_TEST(lk1.owns_lock() == false); in main()
Dmutex_pass.cpp31 boost::unique_lock<boost::mutex> lk1(m); in main() local
32 BOOST_TEST(lk1.mutex() == &m); in main()
33 lk1.unlock(); in main()
34 BOOST_TEST(lk1.mutex() == &m); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/
Dmove_assign_pass.cpp33 boost::unique_lock<boost::mutex> lk1(m1); in main() local
34 lk1 = boost::move(lk0); in main()
35 BOOST_TEST(lk1.mutex() == &m0); in main()
36 BOOST_TEST(lk1.owns_lock() == true); in main()
44 boost::unique_lock<boost::mutex> lk1; in main() local
45 lk1 = BOOST_THREAD_MAKE_RV_REF(boost::unique_lock<boost::mutex>(m0)); in main()
46 BOOST_TEST(lk1.mutex() == &m0); in main()
47 BOOST_TEST(lk1.owns_lock() == true); in main()
Dcopy_assign_fail.cpp31 boost::unique_lock<boost::mutex> lk1(m1); in main() local
32 lk1 = lk0; in main()
33 BOOST_TEST(lk1.mutex() == &m0); in main()
34 BOOST_TEST(lk1.owns_lock() == true); in main()
Dcopy_ctor_fail.cpp32 boost::unique_lock<boost::mutex> lk1 = lk0; in main() local
33 BOOST_TEST(lk1.mutex() == &m1); in main()
34 BOOST_TEST(lk1.owns_lock() == true); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/obs/
Dop_bool_pass.cpp31 boost::shared_lock < boost::shared_mutex > lk1(m); in main() local
32 BOOST_TEST(bool(lk1) == true); in main()
33 lk1.unlock(); in main()
34 BOOST_TEST(bool(lk1) == false); in main()
Downs_lock_pass.cpp31 boost::shared_lock<boost::shared_mutex> lk1(m); in main() local
32 BOOST_TEST(lk1.owns_lock() == true); in main()
33 lk1.unlock(); in main()
34 BOOST_TEST(lk1.owns_lock() == false); in main()
Dmutex_pass.cpp31 boost::shared_lock<boost::shared_mutex> lk1(m); in main() local
32 BOOST_TEST(lk1.mutex() == &m); in main()
33 lk1.unlock(); in main()
34 BOOST_TEST(lk1.mutex() == &m); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/obs/
Dop_bool_pass.cpp31 boost::upgrade_lock < boost::shared_mutex > lk1(m); in main() local
32 BOOST_TEST(bool(lk1) == true); in main()
33 lk1.unlock(); in main()
34 BOOST_TEST(bool(lk1) == false); in main()
Downs_lock_pass.cpp31 boost::upgrade_lock<boost::shared_mutex> lk1(m); in main() local
32 BOOST_TEST(lk1.owns_lock() == true); in main()
33 lk1.unlock(); in main()
34 BOOST_TEST(lk1.owns_lock() == false); in main()
Dmutex_pass.cpp31 boost::upgrade_lock<boost::shared_mutex> lk1(m); in main() local
32 BOOST_TEST(lk1.mutex() == &m); in main()
33 lk1.unlock(); in main()
34 BOOST_TEST(lk1.mutex() == &m); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/mod/
Dmember_swap_pass.cpp38 boost::upgrade_lock<shared_mutex> lk1(m); in main() local
40 lk1.swap(lk2); in main()
41 BOOST_TEST(lk1.mutex() == 0); in main()
42 BOOST_TEST(lk1.owns_lock() == false); in main()
Dnon_member_swap_pass.cpp37 boost::upgrade_lock<shared_mutex> lk1(m); in main() local
39 swap(lk1, lk2); in main()
40 BOOST_TEST(lk1.mutex() == 0); in main()
41 BOOST_TEST(lk1.owns_lock() == false); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/mod/
Dmember_swap_pass.cpp38 boost::shared_lock<shared_mutex> lk1(m); in main() local
40 lk1.swap(lk2); in main()
41 BOOST_TEST(lk1.mutex() == 0); in main()
42 BOOST_TEST(lk1.owns_lock() == false); in main()
Dnon_member_swap_pass.cpp37 boost::shared_lock<shared_mutex> lk1(m); in main() local
39 swap(lk1, lk2); in main()
40 BOOST_TEST(lk1.mutex() == 0); in main()
41 BOOST_TEST(lk1.owns_lock() == false); in main()
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/mod/
Dmember_swap_pass.cpp38 boost::unique_lock<mutex> lk1(m); in main() local
40 lk1.swap(lk2); in main()
41 BOOST_TEST(lk1.mutex() == 0); in main()
42 BOOST_TEST(lk1.owns_lock() == false); in main()
Dnon_member_swap_pass.cpp37 boost::unique_lock<mutex> lk1(m); in main() local
39 swap(lk1, lk2); in main()
40 BOOST_TEST(lk1.mutex() == 0); in main()
41 BOOST_TEST(lk1.owns_lock() == false); in main()
/third_party/boost/boost/thread/
Dsynchronized_value.hpp495 unique_lock<mutex_type> lk1(mtx_, defer_lock); in operator =() local
497 lock(lk1,lk2); in operator =()
582 unique_lock<mutex_type> lk1(mtx_, defer_lock); in swap() local
584 lock(lk1,lk2); in swap()
843 unique_lock<mutex_type> lk1(mtx_, defer_lock); in operator ==() local
845 lock(lk1,lk2); in operator ==()
855 unique_lock<mutex_type> lk1(mtx_, defer_lock); in operator <() local
857 lock(lk1,lk2); in operator <()
867 unique_lock<mutex_type> lk1(mtx_, defer_lock); in operator >() local
869 lock(lk1,lk2); in operator >()
[all …]

12