Searched refs:lk0 (Results 1 – 14 of 14) sorted by relevance
28 std::shared_lock<M> lk0(m); in main() local29 std::shared_lock<M> lk = std::move(lk0); in main()32 assert(lk0.mutex() == nullptr); in main()33 assert(lk0.owns_lock() == false); in main()38 std::shared_lock<M> lk0(m); in main() local39 std::shared_lock<M> lk = std::move(lk0); in main()42 assert(lk0.mutex() == nullptr); in main()43 assert(lk0.owns_lock() == false); in main()
30 std::shared_lock<M> lk0(m0); in main() local32 lk1 = std::move(lk0); in main()35 assert(lk0.mutex() == nullptr); in main()36 assert(lk0.owns_lock() == false); in main()42 std::shared_lock<M> lk0(m0); in main() local44 lk1 = std::move(lk0); in main()47 assert(lk0.mutex() == nullptr); in main()48 assert(lk0.owns_lock() == false); in main()
23 std::shared_lock<std::shared_timed_mutex> lk0(m); in main() local24 std::shared_lock<std::shared_timed_mutex> lk = lk0; in main()
24 std::shared_lock<std::shared_timed_mutex> lk0(m0); in main() local26 lk1 = lk0; in main()
27 std::unique_lock<M> lk0(m); in main() local28 std::unique_lock<M> lk = std::move(lk0); in main()31 assert(lk0.mutex() == nullptr); in main()32 assert(lk0.owns_lock() == false); in main()37 std::unique_lock<M> lk0(m); in main() local38 std::unique_lock<M> lk = std::move(lk0); in main()41 assert(lk0.mutex() == nullptr); in main()42 assert(lk0.owns_lock() == false); in main()
28 std::unique_lock<M> lk0(m0); in main() local30 lk1 = std::move(lk0); in main()33 assert(lk0.mutex() == nullptr); in main()34 assert(lk0.owns_lock() == false); in main()40 std::unique_lock<M> lk0(m0); in main() local42 lk1 = std::move(lk0); in main()45 assert(lk0.mutex() == nullptr); in main()46 assert(lk0.owns_lock() == false); in main()
24 std::unique_lock<M> lk0(m); in main() local25 std::unique_lock<M> lk = lk0; in main()28 assert(lk0.mutex() == nullptr); in main()29 assert(lk0.owns_lock() == false); in main()
25 std::unique_lock<M> lk0(m0); in main() local27 lk1 = lk0; in main()30 assert(lk0.mutex() == nullptr); in main()31 assert(lk0.owns_lock() == false); in main()
26 std::shared_lock<std::shared_timed_mutex> lk0; in main() local27 assert(static_cast<bool>(lk0) == false); in main()32 static_assert(noexcept(static_cast<bool>(lk0)), "explicit operator bool() must be noexcept"); in main()
26 std::shared_lock<std::shared_timed_mutex> lk0; in main() local27 assert(lk0.owns_lock() == false); in main()32 static_assert(noexcept(lk0.owns_lock()), "owns_lock must be noexcept"); in main()
26 std::shared_lock<std::shared_timed_mutex> lk0; in main() local27 assert(lk0.mutex() == nullptr); in main()32 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()