Home
last modified time | relevance | path

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

/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Dnonmember_swap.pass.cpp36 std::shared_lock<mutex> lk2; in main() local
37 swap(lk1, lk2); in main()
40 assert(lk2.mutex() == &m); in main()
41 assert(lk2.owns_lock() == true); in main()
42 static_assert(noexcept(swap(lk1, lk2)), "non-member swap must be noexcept"); in main()
Dmember_swap.pass.cpp35 std::shared_lock<mutex> lk2; in main() local
36 lk1.swap(lk2); in main()
39 assert(lk2.mutex() == &m); in main()
40 assert(lk2.owns_lock() == true); in main()
41 static_assert(noexcept(lk1.swap(lk2)), "member swap must be noexcept"); in main()
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
Dnonmember_swap.pass.cpp31 std::unique_lock<mutex> lk2; in main() local
32 swap(lk1, lk2); in main()
35 assert(lk2.mutex() == &m); in main()
36 assert(lk2.owns_lock() == true); in main()
Dmember_swap.pass.cpp30 std::unique_lock<mutex> lk2; in main() local
31 lk1.swap(lk2); in main()
34 assert(lk2.mutex() == &m); in main()
35 assert(lk2.owns_lock() == true); in main()
/external/valgrind/main/helgrind/
Dhg_errors.c107 Lock* lk2 = (Lock*)lk2W; in lock_unique_cmp() local
109 tl_assert( HG_(is_sane_LockNorP)(lk2) ); in lock_unique_cmp()
110 if (lk1->unique < lk2->unique) return -1; in lock_unique_cmp()
111 if (lk1->unique > lk2->unique) return 1; in lock_unique_cmp()