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.cpp27 assert(lk0.owns_lock() == false); in main()
29 assert(lk1.owns_lock() == true); in main()
31 assert(lk1.owns_lock() == false); in main()
32 static_assert(noexcept(lk0.owns_lock()), "owns_lock must be noexcept"); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmove_ctor.pass.cpp31 assert(lk.owns_lock() == true); in main()
33 assert(lk0.owns_lock() == false); in main()
41 assert(lk.owns_lock() == true); in main()
43 assert(lk0.owns_lock() == false); in main()
Dmove_assign.pass.cpp34 assert(lk1.owns_lock() == true); in main()
36 assert(lk0.owns_lock() == false); in main()
46 assert(lk1.owns_lock() == true); in main()
48 assert(lk0.owns_lock() == false); in main()
Dmutex_try_to_lock.pass.cpp38 assert(lk.owns_lock() == false); in f()
42 assert(lk.owns_lock() == false); in f()
46 assert(lk.owns_lock() == false); in f()
51 if (lk.owns_lock()) in f()
Dmutex_defer_lock.pass.cpp30 assert(lk.owns_lock() == false); in main()
37 assert(lk.owns_lock() == false); in main()
Dmutex_adopt_lock.pass.cpp31 assert(lk.owns_lock() == true); in main()
39 assert(lk.owns_lock() == true); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmove_ctor.pass.cpp30 assert(lk.owns_lock() == true); in main()
32 assert(lk0.owns_lock() == false); in main()
40 assert(lk.owns_lock() == true); in main()
42 assert(lk0.owns_lock() == false); in main()
Dmove_assign.pass.cpp32 assert(lk1.owns_lock() == true); in main()
34 assert(lk0.owns_lock() == false); in main()
44 assert(lk1.owns_lock() == true); in main()
46 assert(lk0.owns_lock() == false); in main()
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.cpp27 assert(lk.owns_lock() == true); in main()
29 assert(lk0.owns_lock() == false); in main()
Dcopy_assign.fail.cpp29 assert(lk1.owns_lock() == true); in main()
31 assert(lk0.owns_lock() == false); in main()
Dmutex_defer_lock.pass.cpp29 assert(lk.owns_lock() == false); in main()
36 assert(lk.owns_lock() == false); in main()
Dmutex_adopt_lock.pass.cpp30 assert(lk.owns_lock() == true); in main()
38 assert(lk.owns_lock() == true); 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/
Dnonmember_swap.pass.cpp36 assert(lk1.owns_lock() == false); in main()
38 assert(lk2.owns_lock() == true); in main()
Dmember_swap.pass.cpp35 assert(lk1.owns_lock() == false); in main()
37 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/
Dnonmember_swap.pass.cpp37 assert(lk1.owns_lock() == false); in main()
39 assert(lk2.owns_lock() == true); in main()
Dmember_swap.pass.cpp36 assert(lk1.owns_lock() == false); in main()
38 assert(lk2.owns_lock() == true); in main()
Drelease.pass.cpp39 assert(lk.owns_lock() == true); in main()
44 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.cpp42 assert(lk.owns_lock() == true); in main()
57 assert(lk.owns_lock() == false); in main()
Dtry_lock_for.pass.cpp47 assert(lk.owns_lock() == true); in main()
62 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.cpp43 assert(lk.owns_lock() == true); in main()
58 assert(lk.owns_lock() == false); in main()
Dtry_lock_for.pass.cpp48 assert(lk.owns_lock() == true); in main()
63 assert(lk.owns_lock() == false); in main()

12