Home
last modified time | relevance | path

Searched refs:WaitTime (Results 1 – 12 of 12) sorted by relevance

/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dtry_lock_until.pass.cpp38 ms WaitTime = ms(250); variable
52 assert(m.try_lock_until(Clock::now() + WaitTime + Tolerance) == true); in f1()
55 ns d = t1 - t0 - WaitTime; in f1()
62 assert(m.try_lock_until(Clock::now() + WaitTime) == false); in f2()
64 ns d = t1 - t0 - WaitTime; in f2()
73 std::this_thread::sleep_for(WaitTime); in main()
80 std::this_thread::sleep_for(WaitTime + Tolerance); in main()
Dtry_lock_for.pass.cpp38 ms WaitTime = ms(250); variable
52 assert(m.try_lock_for(WaitTime + Tolerance) == true); in f1()
55 ns d = t1 - t0 - WaitTime; in f1()
62 assert(m.try_lock_for(WaitTime) == false); in f2()
64 ns d = t1 - t0 - WaitTime; in f2()
73 std::this_thread::sleep_for(WaitTime); in main()
80 std::this_thread::sleep_for(WaitTime + Tolerance); in main()
Dtry_lock_shared_until.pass.cpp38 ms WaitTime = ms(250); variable
52 assert(m.try_lock_shared_until(Clock::now() + WaitTime + Tolerance) == true); in f1()
55 ns d = t1 - t0 - WaitTime; in f1()
62 assert(m.try_lock_shared_until(Clock::now() + WaitTime) == false); in f2()
64 ns d = t1 - t0 - WaitTime; in f2()
75 std::this_thread::sleep_for(WaitTime); in main()
85 std::this_thread::sleep_for(WaitTime + Tolerance); in main()
Dtry_lock_shared_for.pass.cpp38 ms WaitTime = ms(250); variable
52 assert(m.try_lock_shared_for(WaitTime + Tolerance) == true); in f1()
55 ns d = t1 - t0 - WaitTime; in f1()
62 assert(m.try_lock_shared_for(WaitTime) == false); in f2()
64 ns d = t1 - t0 - WaitTime; in f2()
75 std::this_thread::sleep_for(WaitTime); in main()
85 std::this_thread::sleep_for(WaitTime + Tolerance); in main()
Dlock_shared.pass.cpp38 ms WaitTime = ms(250); variable
56 ns d = t1 - t0 - WaitTime; in f()
77 std::this_thread::sleep_for(WaitTime); in main()
85 std::this_thread::sleep_for(WaitTime); in main()
Dlock.pass.cpp37 ms WaitTime = ms(250); variable
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_duration.pass.cpp38 ms WaitTime = ms(250); variable
53 std::shared_lock<std::shared_timed_mutex> lk(m, WaitTime + Tolerance); in f1()
56 ns d = t1 - t0 - WaitTime; in f1()
63 std::shared_lock<std::shared_timed_mutex> lk(m, WaitTime); in f2()
66 ns d = t1 - t0 - WaitTime; in f2()
77 std::this_thread::sleep_for(WaitTime); in main()
87 std::this_thread::sleep_for(WaitTime + Tolerance); in main()
Dmutex_time_point.pass.cpp38 ms WaitTime = ms(250); variable
52 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + WaitTime + Tolerance); in f1()
55 ns d = t1 - t0 - WaitTime; in f1()
62 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + WaitTime); in f2()
65 ns d = t1 - t0 - WaitTime; in f2()
76 std::this_thread::sleep_for(WaitTime); in main()
86 std::this_thread::sleep_for(WaitTime + Tolerance); in main()
Dmutex.pass.cpp35 ms WaitTime = ms(250); variable
56 ns d = t1 - t0 - WaitTime; in f()
79 std::this_thread::sleep_for(WaitTime); in main()
89 std::this_thread::sleep_for(WaitTime); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/
Dlock_shared.pass.cpp37 ms WaitTime = ms(250); variable
54 ns d = t1 - t0 - WaitTime; in f()
75 std::this_thread::sleep_for(WaitTime); in main()
83 std::this_thread::sleep_for(WaitTime); in main()
Dlock.pass.cpp36 ms WaitTime = ms(250); variable
53 ns d = t1 - t0 - WaitTime; in f()
61 std::this_thread::sleep_for(WaitTime); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dlock.pass.cpp35 ms WaitTime = ms(250); variable
54 ns d = t1 - t0 - WaitTime; in f()
88 std::this_thread::sleep_for(WaitTime); in main()