Searched refs:lk0 (Results 1 – 14 of 14) sorted by relevance
23 std::unique_lock<std::mutex> lk0(m); in main() local24 std::unique_lock<std::mutex> lk = lk0; in main()27 assert(lk0.mutex() == nullptr); in main()28 assert(lk0.owns_lock() == false); in main()
26 std::unique_lock<std::mutex> lk0(m); in main() local27 std::unique_lock<std::mutex> lk = std::move(lk0); in main()30 assert(lk0.mutex() == nullptr); in main()31 assert(lk0.owns_lock() == false); in main()
24 std::unique_lock<std::mutex> lk0(m0); in main() local26 lk1 = lk0; in main()29 assert(lk0.mutex() == nullptr); in main()30 assert(lk0.owns_lock() == false); in main()
27 std::unique_lock<std::mutex> lk0(m0); in main() local29 lk1 = std::move(lk0); in main()32 assert(lk0.mutex() == nullptr); in main()33 assert(lk0.owns_lock() == false); in main()
28 std::shared_lock<std::shared_timed_mutex> lk0(m); in main() local29 std::shared_lock<std::shared_timed_mutex> lk = std::move(lk0); in main()32 assert(lk0.mutex() == nullptr); in main()33 assert(lk0.owns_lock() == false); in main()
31 std::shared_lock<std::shared_timed_mutex> lk0(m0); in main() local33 lk1 = std::move(lk0); in main()36 assert(lk0.mutex() == nullptr); in main()37 assert(lk0.owns_lock() == false); in main()
25 std::shared_lock<std::shared_timed_mutex> lk0(m); in main() local26 std::shared_lock<std::shared_timed_mutex> lk = lk0; in main()
28 std::shared_lock<std::shared_timed_mutex> lk0(m0); in main() local30 lk1 = lk0; in main()
30 std::shared_lock<std::shared_timed_mutex> lk0; in main() local31 assert(static_cast<bool>(lk0) == false); in main()36 static_assert(noexcept(static_cast<bool>(lk0)), "explicit operator bool() must be noexcept"); in main()
30 std::shared_lock<std::shared_timed_mutex> lk0; in main() local31 assert(lk0.owns_lock() == false); in main()36 static_assert(noexcept(lk0.owns_lock()), "owns_lock must be noexcept"); in main()
30 std::shared_lock<std::shared_timed_mutex> lk0; in main() local31 assert(lk0.mutex() == nullptr); in main()36 static_assert(noexcept(lk0.mutex()), "mutex() must be noexcept"); in main()
25 std::unique_lock<std::mutex> lk0; in main() local26 assert(static_cast<bool>(lk0) == false); in main()
25 std::unique_lock<std::mutex> lk0; in main() local26 assert(lk0.owns_lock() == false); in main()
25 std::unique_lock<std::mutex> lk0; in main() local26 assert(lk0.mutex() == nullptr); in main()