Searched refs:lk2 (Results 1 – 5 of 5) sorted by relevance
36 std::shared_lock<mutex> lk2; in main() local37 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()
35 std::shared_lock<mutex> lk2; in main() local36 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()
31 std::unique_lock<mutex> lk2; in main() local32 swap(lk1, lk2); in main()35 assert(lk2.mutex() == &m); in main()36 assert(lk2.owns_lock() == true); in main()
30 std::unique_lock<mutex> lk2; in main() local31 lk1.swap(lk2); in main()34 assert(lk2.mutex() == &m); in main()35 assert(lk2.owns_lock() == true); in main()
107 Lock* lk2 = (Lock*)lk2W; in lock_unique_cmp() local109 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()