Home
last modified time | relevance | path

Searched refs:owns_lock (Results 1 – 25 of 42) sorted by relevance

12

/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/
Downs_lock.pass.cpp31 assert(lk0.owns_lock() == false); in main()
33 assert(lk1.owns_lock() == true); in main()
35 assert(lk1.owns_lock() == false); in main()
36 static_assert(noexcept(lk0.owns_lock()), "owns_lock must be noexcept"); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_try_to_lock.pass.cpp36 assert(lk.owns_lock() == false); in f()
40 assert(lk.owns_lock() == false); in f()
44 assert(lk.owns_lock() == false); in f()
49 if (lk.owns_lock()) in f()
Dcopy_ctor.fail.cpp26 assert(lk.owns_lock() == true); in main()
28 assert(lk0.owns_lock() == false); in main()
Dmove_ctor.pass.cpp29 assert(lk.owns_lock() == true); in main()
31 assert(lk0.owns_lock() == false); in main()
Dcopy_assign.fail.cpp28 assert(lk1.owns_lock() == true); in main()
30 assert(lk0.owns_lock() == false); in main()
Dmove_assign.pass.cpp31 assert(lk1.owns_lock() == true); in main()
33 assert(lk0.owns_lock() == false); in main()
Dmutex_duration.pass.cpp36 assert(lk.owns_lock() == true); in f1()
46 assert(lk.owns_lock() == false); in f2()
Dmutex_time_point.pass.cpp36 assert(lk.owns_lock() == true); in f1()
46 assert(lk.owns_lock() == false); in f2()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_try_to_lock.pass.cpp39 assert(lk.owns_lock() == false); in f()
43 assert(lk.owns_lock() == false); in f()
47 assert(lk.owns_lock() == false); in f()
52 if (lk.owns_lock()) in f()
Dmove_ctor.pass.cpp31 assert(lk.owns_lock() == true); in main()
33 assert(lk0.owns_lock() == false); in main()
Dmove_assign.pass.cpp35 assert(lk1.owns_lock() == true); in main()
37 assert(lk0.owns_lock() == false); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/
Downs_lock.pass.cpp26 assert(lk0.owns_lock() == false); in main()
28 assert(lk1.owns_lock() == true); in main()
30 assert(lk1.owns_lock() == false); in main()
/external/llvm/include/llvm/Support/
DUniqueLock.h39 if (owns_lock())
47 ~unique_lock() { if (owns_lock()) M->unlock(); } in ~unique_lock()
63 bool owns_lock() { return locked; } in owns_lock() function
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
Dmember_swap.pass.cpp35 assert(lk1.owns_lock() == false); in main()
37 assert(lk2.owns_lock() == true); in main()
Dnonmember_swap.pass.cpp36 assert(lk1.owns_lock() == false); in main()
38 assert(lk2.owns_lock() == true); in main()
Drelease.pass.cpp38 assert(lk.owns_lock() == true); in main()
43 assert(lk.owns_lock() == false); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Dmember_swap.pass.cpp40 assert(lk1.owns_lock() == false); in main()
42 assert(lk2.owns_lock() == true); in main()
Dnonmember_swap.pass.cpp41 assert(lk1.owns_lock() == false); in main()
43 assert(lk2.owns_lock() == true); in main()
Drelease.pass.cpp43 assert(lk.owns_lock() == true); in main()
48 assert(lk.owns_lock() == false); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock.pass.cpp40 assert(lk.owns_lock() == true); in main()
53 assert(lk.owns_lock() == false); in main()
Dtry_lock_for.pass.cpp45 assert(lk.owns_lock() == true); in main()
58 assert(lk.owns_lock() == false); in main()
Dtry_lock_until.pass.cpp45 assert(lk.owns_lock() == true); in main()
58 assert(lk.owns_lock() == false); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock.pass.cpp45 assert(lk.owns_lock() == true); in main()
58 assert(lk.owns_lock() == false); in main()
Dtry_lock_for.pass.cpp50 assert(lk.owns_lock() == true); in main()
63 assert(lk.owns_lock() == false); in main()
Dtry_lock_until.pass.cpp50 assert(lk.owns_lock() == true); in main()
63 assert(lk.owns_lock() == false); in main()

12