Home
last modified time | relevance | path

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

12

/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmove_assign.pass.cpp37 std::shared_lock<M> lk1(m1); in main() local
38 lk1 = std::move(lk0); in main()
39 assert(lk1.mutex() == std::addressof(m0)); in main()
40 assert(lk1.owns_lock() == true); in main()
49 std::shared_lock<M> lk1(m1); in main() local
50 lk1 = std::move(lk0); in main()
51 assert(lk1.mutex() == std::addressof(m0)); in main()
52 assert(lk1.owns_lock() == true); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmove_assign.pass.cpp31 std::shared_lock<M> lk1(m1); in main() local
32 lk1 = std::move(lk0); in main()
33 assert(lk1.mutex() == std::addressof(m0)); in main()
34 assert(lk1.owns_lock() == true); in main()
43 std::shared_lock<M> lk1(m1); in main() local
44 lk1 = std::move(lk0); in main()
45 assert(lk1.mutex() == std::addressof(m0)); in main()
46 assert(lk1.owns_lock() == true); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmove_assign.pass.cpp30 std::unique_lock<M> lk1(m1); in main() local
31 lk1 = std::move(lk0); in main()
32 assert(lk1.mutex() == std::addressof(m0)); in main()
33 assert(lk1.owns_lock() == true); in main()
42 std::unique_lock<M> lk1(m1); in main() local
43 lk1 = std::move(lk0); in main()
44 assert(lk1.mutex() == std::addressof(m0)); in main()
45 assert(lk1.owns_lock() == true); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmove_assign.pass.cpp29 std::unique_lock<M> lk1(m1); in main() local
30 lk1 = std::move(lk0); in main()
31 assert(lk1.mutex() == std::addressof(m0)); in main()
32 assert(lk1.owns_lock() == true); in main()
41 std::unique_lock<M> lk1(m1); in main() local
42 lk1 = std::move(lk0); in main()
43 assert(lk1.mutex() == std::addressof(m0)); in main()
44 assert(lk1.owns_lock() == true); in main()
Dcopy_assign.fail.cpp26 std::unique_lock<M> lk1(m1); in main() local
27 lk1 = lk0; in main()
28 assert(lk1.mutex() == &m0); in main()
29 assert(lk1.owns_lock() == true); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Dnonmember_swap.pass.cpp34 std::shared_lock<mutex> lk1(m); in main() local
36 swap(lk1, lk2); in main()
37 assert(lk1.mutex() == nullptr); in main()
38 assert(lk1.owns_lock() == false); in main()
41 static_assert(noexcept(swap(lk1, lk2)), "non-member swap must be noexcept"); in main()
Dmember_swap.pass.cpp33 std::shared_lock<mutex> lk1(m); in main() local
35 lk1.swap(lk2); in main()
36 assert(lk1.mutex() == nullptr); in main()
37 assert(lk1.owns_lock() == false); in main()
40 static_assert(noexcept(lk1.swap(lk2)), "member swap must be noexcept"); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Dmember_swap.pass.cpp32 std::shared_lock<mutex> lk1(m); in main() local
34 lk1.swap(lk2); in main()
35 assert(lk1.mutex() == nullptr); in main()
36 assert(lk1.owns_lock() == false); in main()
39 static_assert(noexcept(lk1.swap(lk2)), "member swap must be noexcept"); in main()
Dnonmember_swap.pass.cpp33 std::shared_lock<mutex> lk1(m); in main() local
35 swap(lk1, lk2); in main()
36 assert(lk1.mutex() == nullptr); in main()
37 assert(lk1.owns_lock() == false); in main()
40 static_assert(noexcept(swap(lk1, lk2)), "non-member swap must be noexcept"); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/
Dop_bool.pass.cpp28 std::unique_lock<std::mutex> lk1(m); in main() local
29 assert(static_cast<bool>(lk1) == true); in main()
30 lk1.unlock(); in main()
31 assert(static_cast<bool>(lk1) == false); in main()
Downs_lock.pass.cpp28 std::unique_lock<std::mutex> lk1(m); in main() local
29 assert(lk1.owns_lock() == true); in main()
30 lk1.unlock(); in main()
31 assert(lk1.owns_lock() == false); in main()
Dmutex.pass.cpp28 std::unique_lock<std::mutex> lk1(m); in main() local
29 assert(lk1.mutex() == &m); in main()
30 lk1.unlock(); in main()
31 assert(lk1.mutex() == &m); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/
Dop_bool.pass.cpp27 std::unique_lock<std::mutex> lk1(m); in main() local
28 assert(static_cast<bool>(lk1) == true); in main()
29 lk1.unlock(); in main()
30 assert(static_cast<bool>(lk1) == false); in main()
Downs_lock.pass.cpp27 std::unique_lock<std::mutex> lk1(m); in main() local
28 assert(lk1.owns_lock() == true); in main()
29 lk1.unlock(); in main()
30 assert(lk1.owns_lock() == false); in main()
Dmutex.pass.cpp27 std::unique_lock<std::mutex> lk1(m); in main() local
28 assert(lk1.mutex() == &m); in main()
29 lk1.unlock(); in main()
30 assert(lk1.mutex() == &m); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/
Dop_bool.pass.cpp28 std::shared_lock<std::shared_timed_mutex> lk1(m); in main() local
29 assert(static_cast<bool>(lk1) == true); in main()
30 lk1.unlock(); in main()
31 assert(static_cast<bool>(lk1) == false); in main()
Downs_lock.pass.cpp28 std::shared_lock<std::shared_timed_mutex> lk1(m); in main() local
29 assert(lk1.owns_lock() == true); in main()
30 lk1.unlock(); in main()
31 assert(lk1.owns_lock() == false); in main()
Dmutex.pass.cpp28 std::shared_lock<std::shared_timed_mutex> lk1(m); in main() local
29 assert(lk1.mutex() == &m); in main()
30 lk1.unlock(); in main()
31 assert(lk1.mutex() == &m); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/
Dop_bool.pass.cpp34 std::shared_lock<std::shared_timed_mutex> lk1(m); in main() local
35 assert(static_cast<bool>(lk1) == true); in main()
36 lk1.unlock(); in main()
37 assert(static_cast<bool>(lk1) == false); in main()
Downs_lock.pass.cpp34 std::shared_lock<std::shared_timed_mutex> lk1(m); in main() local
35 assert(lk1.owns_lock() == true); in main()
36 lk1.unlock(); in main()
37 assert(lk1.owns_lock() == false); in main()
Dmutex.pass.cpp34 std::shared_lock<std::shared_timed_mutex> lk1(m); in main() local
35 assert(lk1.mutex() == &m); in main()
36 lk1.unlock(); in main()
37 assert(lk1.mutex() == &m); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
Dmember_swap.pass.cpp31 std::unique_lock<mutex> lk1(m); in main() local
33 lk1.swap(lk2); in main()
34 assert(lk1.mutex() == nullptr); in main()
35 assert(lk1.owns_lock() == false); in main()
Dnonmember_swap.pass.cpp32 std::unique_lock<mutex> lk1(m); in main() local
34 swap(lk1, lk2); in main()
35 assert(lk1.mutex() == nullptr); in main()
36 assert(lk1.owns_lock() == false); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
Dmember_swap.pass.cpp32 std::unique_lock<mutex> lk1(m); in main() local
34 lk1.swap(lk2); in main()
35 assert(lk1.mutex() == nullptr); in main()
36 assert(lk1.owns_lock() == false); in main()
Dnonmember_swap.pass.cpp33 std::unique_lock<mutex> lk1(m); in main() local
35 swap(lk1, lk2); in main()
36 assert(lk1.mutex() == nullptr); in main()
37 assert(lk1.owns_lock() == false); in main()

12