/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/ |
D | move_assign_pass.cpp | 33 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 …]
|
D | copy_assign_fail.cpp | 31 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()
|
D | copy_ctor_fail.cpp | 32 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/ |
D | move_assign_pass.cpp | 33 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 …]
|
D | copy_assign_fail.cpp | 31 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()
|
D | copy_ctor_fail.cpp | 32 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/ |
D | op_bool_pass.cpp | 32 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()
|
D | owns_lock_pass.cpp | 32 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()
|
D | mutex_pass.cpp | 31 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/ |
D | move_assign_pass.cpp | 33 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()
|
D | copy_assign_fail.cpp | 31 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()
|
D | copy_ctor_fail.cpp | 32 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/ |
D | op_bool_pass.cpp | 31 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()
|
D | owns_lock_pass.cpp | 31 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()
|
D | mutex_pass.cpp | 31 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/ |
D | op_bool_pass.cpp | 31 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()
|
D | owns_lock_pass.cpp | 31 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()
|
D | mutex_pass.cpp | 31 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/ |
D | member_swap_pass.cpp | 38 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()
|
D | non_member_swap_pass.cpp | 37 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/ |
D | member_swap_pass.cpp | 38 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()
|
D | non_member_swap_pass.cpp | 37 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/ |
D | member_swap_pass.cpp | 38 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()
|
D | non_member_swap_pass.cpp | 37 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/ |
D | synchronized_value.hpp | 495 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 …]
|