/ndk/sources/cxx-stl/llvm-libc++/test/thread/futures/futures.async/ |
D | async.pass.cpp | 24 typedef std::chrono::high_resolution_clock Clock; typedef 63 Clock::time_point t0 = Clock::now(); in main() 65 Clock::time_point t1 = Clock::now(); in main() 71 Clock::time_point t0 = Clock::now(); in main() 73 Clock::time_point t1 = Clock::now(); in main() 79 Clock::time_point t0 = Clock::now(); in main() 81 Clock::time_point t1 = Clock::now(); in main() 87 Clock::time_point t0 = Clock::now(); in main() 89 Clock::time_point t1 = Clock::now(); in main() 96 Clock::time_point t0 = Clock::now(); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/futures/futures.shared_future/ |
D | wait_until.pass.cpp | 46 typedef std::chrono::high_resolution_clock Clock; in main() typedef 53 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main() 55 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main() 57 Clock::time_point t0 = Clock::now(); in main() 59 Clock::time_point t1 = Clock::now(); in main() 69 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main() 71 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main() 73 Clock::time_point t0 = Clock::now(); in main() 75 Clock::time_point t1 = Clock::now(); in main() 85 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main() [all …]
|
D | wait.pass.cpp | 42 typedef std::chrono::high_resolution_clock Clock; in main() typedef 52 Clock::time_point t0 = Clock::now(); in main() 54 Clock::time_point t1 = Clock::now(); in main() 66 Clock::time_point t0 = Clock::now(); in main() 68 Clock::time_point t1 = Clock::now(); in main() 80 Clock::time_point t0 = Clock::now(); in main() 82 Clock::time_point t1 = Clock::now(); in main()
|
D | wait_for.pass.cpp | 46 typedef std::chrono::high_resolution_clock Clock; in main() typedef 57 Clock::time_point t0 = Clock::now(); in main() 59 Clock::time_point t1 = Clock::now(); in main() 73 Clock::time_point t0 = Clock::now(); in main() 75 Clock::time_point t1 = Clock::now(); in main() 89 Clock::time_point t0 = Clock::now(); in main() 91 Clock::time_point t1 = Clock::now(); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/futures/futures.unique_future/ |
D | wait_until.pass.cpp | 46 typedef std::chrono::high_resolution_clock Clock; in main() typedef 53 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main() 55 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main() 57 Clock::time_point t0 = Clock::now(); in main() 59 Clock::time_point t1 = Clock::now(); in main() 69 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main() 71 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::ready); in main() 73 Clock::time_point t0 = Clock::now(); in main() 75 Clock::time_point t1 = Clock::now(); in main() 85 assert(f.wait_until(Clock::now() + ms(300)) == std::future_status::timeout); in main() [all …]
|
D | wait.pass.cpp | 42 typedef std::chrono::high_resolution_clock Clock; in main() typedef 52 Clock::time_point t0 = Clock::now(); in main() 54 Clock::time_point t1 = Clock::now(); in main() 66 Clock::time_point t0 = Clock::now(); in main() 68 Clock::time_point t1 = Clock::now(); in main() 80 Clock::time_point t0 = Clock::now(); in main() 82 Clock::time_point t1 = Clock::now(); in main()
|
D | wait_for.pass.cpp | 46 typedef std::chrono::high_resolution_clock Clock; in main() typedef 57 Clock::time_point t0 = Clock::now(); in main() 59 Clock::time_point t1 = Clock::now(); in main() 73 Clock::time_point t0 = Clock::now(); in main() 75 Clock::time_point t1 = Clock::now(); in main() 89 Clock::time_point t0 = Clock::now(); in main() 91 Clock::time_point t1 = Clock::now(); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.condition/thread.condition.condvarany/ |
D | wait_until.pass.cpp | 24 struct Clock struct 29 typedef std::chrono::time_point<Clock> time_point; argument 59 Clock::time_point t0 = Clock::now(); in f() 60 Clock::time_point t = t0 + Clock::duration(250); in f() 63 Clock::time_point t1 = Clock::now(); in f() 66 assert(t1 - t0 < Clock::duration(250)); in f() 71 assert(t1 - t0 - Clock::duration(250) < Clock::duration(5)); in f()
|
D | wait_until_pred.pass.cpp | 26 struct Clock struct 31 typedef std::chrono::time_point<Clock> time_point; argument 70 Clock::time_point t0 = Clock::now(); in f() 71 Clock::time_point t = t0 + Clock::duration(250); in f() 73 Clock::time_point t1 = Clock::now(); in f() 76 assert(t1 - t0 < Clock::duration(250)); in f() 82 assert(t1 - t0 - Clock::duration(250) < Clock::duration(5)); in f()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.condition/thread.condition.condvar/ |
D | wait_until.pass.cpp | 25 struct Clock struct 30 typedef std::chrono::time_point<Clock> time_point; argument 56 Clock::time_point t0 = Clock::now(); in f() argument 57 Clock::time_point t = t0 + Clock::duration(250); in f() 60 Clock::time_point t1 = Clock::now(); in f() 63 assert(t1 - t0 < Clock::duration(250)); in f() 68 assert(t1 - t0 - Clock::duration(250) < Clock::duration(5)); in f()
|
D | wait_until_pred.pass.cpp | 26 struct Clock struct 31 typedef std::chrono::time_point<Clock> time_point; argument 66 Clock::time_point t0 = Clock::now(); in f() 67 Clock::time_point t = t0 + Clock::duration(250); in f() 69 Clock::time_point t1 = Clock::now(); in f() 72 assert(t1 - t0 < Clock::duration(250)); in f() 78 assert(t1 - t0 - Clock::duration(250) < Clock::duration(5)); in f()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/ |
D | try_lock_until.pass.cpp | 24 typedef std::chrono::steady_clock Clock; typedef 25 typedef Clock::time_point time_point; 26 typedef Clock::duration duration; 32 time_point t0 = Clock::now(); in f1() 33 assert(m.try_lock_until(Clock::now() + ms(300)) == true); in f1() 34 time_point t1 = Clock::now(); in f1() 44 time_point t0 = Clock::now(); in f2() 45 assert(m.try_lock_until(Clock::now() + ms(250)) == false); in f2() 46 time_point t1 = Clock::now(); in f2()
|
D | try_lock_for.pass.cpp | 24 typedef std::chrono::steady_clock Clock; typedef 25 typedef Clock::time_point time_point; 26 typedef Clock::duration duration; 32 time_point t0 = Clock::now(); in f1() 34 time_point t1 = Clock::now(); in f1() 44 time_point t0 = Clock::now(); in f2() 46 time_point t1 = Clock::now(); in f2()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/ |
D | try_lock_until.pass.cpp | 24 typedef std::chrono::steady_clock Clock; typedef 25 typedef Clock::time_point time_point; 26 typedef Clock::duration duration; 32 time_point t0 = Clock::now(); in f1() 33 assert(m.try_lock_until(Clock::now() + ms(300)) == true); in f1() 34 time_point t1 = Clock::now(); in f1() 42 time_point t0 = Clock::now(); in f2() 43 assert(m.try_lock_until(Clock::now() + ms(250)) == false); in f2() 44 time_point t1 = Clock::now(); in f2()
|
D | try_lock_for.pass.cpp | 24 typedef std::chrono::steady_clock Clock; typedef 25 typedef Clock::time_point time_point; 26 typedef Clock::duration duration; 32 time_point t0 = Clock::now(); in f1() 34 time_point t1 = Clock::now(); in f1() 42 time_point t0 = Clock::now(); in f2() 44 time_point t1 = Clock::now(); in f2()
|
D | lock.pass.cpp | 25 typedef std::chrono::system_clock Clock; typedef 26 typedef Clock::time_point time_point; 27 typedef Clock::duration duration; 33 time_point t0 = Clock::now(); in f() 35 time_point t1 = Clock::now(); in f()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/ |
D | mutex_time_point.pass.cpp | 24 typedef std::chrono::steady_clock Clock; typedef 25 typedef Clock::time_point time_point; 26 typedef Clock::duration duration; 32 time_point t0 = Clock::now(); in f1() 33 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(300)); in f1() 35 time_point t1 = Clock::now(); in f1() 42 time_point t0 = Clock::now(); in f2() 43 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(250)); in f2() 45 time_point t1 = Clock::now(); in f2()
|
D | mutex_duration.pass.cpp | 24 typedef std::chrono::steady_clock Clock; typedef 25 typedef Clock::time_point time_point; 26 typedef Clock::duration duration; 32 time_point t0 = Clock::now(); in f1() 35 time_point t1 = Clock::now(); in f1() 42 time_point t0 = Clock::now(); in f2() 45 time_point t1 = Clock::now(); in f2()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/ |
D | try_lock_until.pass.cpp | 24 template <class Clock, class Duration> 25 bool try_lock_until(const std::chrono::time_point<Clock, Duration>& abs_time) in try_lock_until() 28 assert(Clock::now() - abs_time < ms(5)); in try_lock_until() 39 typedef std::chrono::steady_clock Clock; in main() typedef 41 assert(lk.try_lock_until(Clock::now()) == true); in main() 46 lk.try_lock_until(Clock::now()); in main() 54 assert(lk.try_lock_until(Clock::now()) == false); in main() 60 lk.try_lock_until(Clock::now()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.threads/thread.thread.this/ |
D | sleep_until.pass.cpp | 21 typedef std::chrono::system_clock Clock; in main() typedef 22 typedef Clock::time_point time_point; in main() 23 typedef Clock::duration duration; in main() 25 time_point t0 = Clock::now(); in main() 27 time_point t1 = Clock::now(); in main()
|
D | sleep_for.pass.cpp | 21 typedef std::chrono::system_clock Clock; in main() typedef 22 typedef Clock::time_point time_point; in main() 23 typedef Clock::duration duration; in main() 25 time_point t0 = Clock::now(); in main() 27 time_point t1 = Clock::now(); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/ |
D | lock.pass.cpp | 25 typedef std::chrono::system_clock Clock; typedef 26 typedef Clock::time_point time_point; 27 typedef Clock::duration duration; 33 time_point t0 = Clock::now(); in f() 35 time_point t1 = Clock::now(); in f()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.condition/ |
D | notify_all_at_thread_exit.pass.cpp | 25 typedef std::chrono::high_resolution_clock Clock; typedef 38 Clock::time_point t0 = Clock::now(); in main() 40 Clock::time_point t1 = Clock::now(); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.lock/thread.lock.guard/ |
D | mutex.pass.cpp | 23 typedef std::chrono::system_clock Clock; typedef 24 typedef Clock::time_point time_point; 25 typedef Clock::duration duration; 31 time_point t0 = Clock::now(); in f() 35 t1 = Clock::now(); in f()
|
D | mutex.fail.cpp | 23 typedef std::chrono::system_clock Clock; typedef 24 typedef Clock::time_point time_point; 25 typedef Clock::duration duration; 31 time_point t0 = Clock::now(); in f() 35 t1 = Clock::now(); in f()
|