/third_party/jerryscript/jerry-port/default/ |
D | default-debugger.c | 37 void jerry_port_sleep (uint32_t sleep_time) /**< milliseconds to sleep */ in jerry_port_sleep() argument 40 Sleep (sleep_time); in jerry_port_sleep() 43 sleep_timespec.tv_sec = (time_t) sleep_time / 1000; in jerry_port_sleep() 44 sleep_timespec.tv_nsec = ((long int) sleep_time % 1000) * 1000000L; in jerry_port_sleep() 48 usleep ((useconds_t) sleep_time * 1000); in jerry_port_sleep() 50 (void) sleep_time; in jerry_port_sleep()
|
/third_party/python/Lib/test/ |
D | _test_eintr.py | 49 sleep_time = 0.2 variable in EINTRBaseTest 84 code = 'import time; time.sleep(%r)' % self.sleep_time 130 'sleep_time = %r' % self.sleep_time, 157 'sleep_time = %r' % self.sleep_time, 204 'sleep_time = %r' % self.sleep_time, 245 'sleep_time = %r' % self.sleep_time, 297 'sleep_time = %r' % self.sleep_time, 333 'sleep_time = %r' % self.sleep_time, 373 time.sleep(self.sleep_time) 376 self.assertGreaterEqual(dt, self.sleep_time) [all …]
|
/third_party/json/benchmarks/thirdparty/benchmark/src/ |
D | sleep.cc | 36 struct timespec sleep_time; 37 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond; 38 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro; 39 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR)
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/test/ |
D | platform_thread.cc | 86 struct timespec sleep_time, remaining; 89 sleep_time.tv_sec = duration_ms / 1000; 90 duration_ms -= sleep_time.tv_sec * 1000; 93 sleep_time.tv_nsec = duration_ms * 1000 * 1000; // nanoseconds. 95 while (nanosleep(&sleep_time, &remaining) == -1 && errno == EINTR) 96 sleep_time = remaining;
|
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
D | platform_thread.cc | 86 struct timespec sleep_time, remaining; 89 sleep_time.tv_sec = duration_ms / 1000; 90 duration_ms -= sleep_time.tv_sec * 1000; 93 sleep_time.tv_nsec = duration_ms * 1000 * 1000; // nanoseconds. 95 while (nanosleep(&sleep_time, &remaining) == -1 && errno == EINTR) 96 sleep_time = remaining;
|
/third_party/benchmark/src/ |
D | sleep.cc | 50 struct timespec sleep_time; 51 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond; 52 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro; 53 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR)
|
/third_party/grpc/src/ruby/end2end/ |
D | multiple_killed_watching_threads_driver.rb | 23 def watch_state(ch, sleep_time) argument 31 sleep sleep_time 35 def run_multiple_killed_watches(num_threads, sleep_time) argument 40 watch_state(ch, sleep_time)
|
D | multiple_killed_watching_threads_test.rb | 23 def watch_state(ch, sleep_time) argument 31 sleep sleep_time 35 def run_multiple_killed_watches(num_threads, sleep_time) argument 40 watch_state(ch, sleep_time)
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 14-1.c | 46 static volatile long sleep_time; variable 83 sleep_time++; in sendsig() 84 if (sleep_time / SIGNALS_WITHOUT_DELAY > 0) { in sendsig() 86 (sleep_time * 1000) / SIGNALS_WITHOUT_DELAY; in sendsig() 136 sleep_time = 0; in test()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress06.c | 67 int sleep_time = 0; in main() local 73 if (argc != 2 || !(sleep_time = atoi(argv[1]))) { in main() 97 (void)sleep(sleep_time); in main()
|
/third_party/weston/clients/ |
D | multi-resource.c | 491 double sleep_time = DBL_MAX; in main_loop() local 504 sleep_time = 0.0; in main_loop() 506 } else if (next_time < sleep_time) { in main_loop() 507 sleep_time = next_time; in main_loop() 511 sleep_time = 0.0; in main_loop() 513 } else if (next_time < sleep_time) { in main_loop() 514 sleep_time = next_time; in main_loop() 524 sleep_time == DBL_MAX ? -1 : ceil(sleep_time * 1000.0)); in main_loop()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/ |
D | 4-3.c | 62 static long sleep_time; variable 111 sleep_time++; in sendsig() 112 if (sleep_time / SIGNALS_WITHOUT_DELAY > 0) { in sendsig() 114 (sleep_time * 1000) / SIGNALS_WITHOUT_DELAY; in sendsig() 175 sleep_time = 0; in test()
|
/third_party/ltp/lib/ |
D | tst_timer_test.c | 35 static int sleep_time = -1; variable 410 do_timer_test(sleep_time, sample_cnt); in single_timer_test() 424 if (tst_parse_int(str_sleep_time, &sleep_time, 0, INT_MAX)) { in parse_timer_opts() 438 if (sleep_time < 0) in parse_timer_opts() 439 sleep_time = 10000; in parse_timer_opts() 444 long long timeout = sleep_time * sample_cnt / 1000000; in parse_timer_opts()
|
/third_party/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 287 struct timespec sleep_time; in PortableSleepForSeconds() 288 sleep_time.tv_sec = seconds; in PortableSleepForSeconds() 289 sleep_time.tv_nsec = 0; in PortableSleepForSeconds() 290 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {} in PortableSleepForSeconds()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 296 struct timespec sleep_time; in PortableSleepForSeconds() 297 sleep_time.tv_sec = seconds; in PortableSleepForSeconds() 298 sleep_time.tv_nsec = 0; in PortableSleepForSeconds() 299 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {} in PortableSleepForSeconds()
|
/third_party/grpc/src/core/lib/iomgr/executor/ |
D | threadpool.cc | 33 stats_.sleep_time = gpr_time_add(stats_.sleep_time, wait_time); in Run() 36 thd_name_, index_, gpr_timespec_to_micros(stats_.sleep_time)); in Run()
|
/third_party/ffmpeg/libavformat/ |
D | fifo_test.c | 44 unsigned sleep_time; /* sleep for this long in write_packet to simulate long I/O operation */ member 83 if (data->sleep_time) { in failing_write_packet() 85 while (slept < data->sleep_time) { in failing_write_packet()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/strict_lock/ |
D | default_pass.cpp | 65 ns sleep_time = t3 - t2; in main() local 66 ns d_ns = t1 - t0 - sleep_time; in main()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/ |
D | default_pass.cpp | 77 ns sleep_time = t3 - t2; in main() local 78 ns d_ns = t1 - t0 - sleep_time; in main()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/ |
D | mutex_pass.cpp | 79 ns sleep_time = t3 - t2; in main() local 80 ns d_ns = t1 - t0 - sleep_time; in main()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/ |
D | mutex_pass.cpp | 78 ns sleep_time = t3 - t2; in main() local 79 ns d_ns = t1 - t0 - sleep_time; in main()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/shared_mutex/ |
D | lock_pass.cpp | 72 ns sleep_time = t3 - t2; in main() local 73 ns d_ns = t1 - t0 - sleep_time; in main()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/mutex/ |
D | lock_pass.cpp | 71 ns sleep_time = t3 - t2; in main() local 72 ns d_ns = t1 - t0 - sleep_time; in main()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/ |
D | default_pass.cpp | 74 ns sleep_time = t3 - t2; in main() local 75 ns d_ns = t1 - t0 - sleep_time; in main()
|
D | make_lock_guard_pass.cpp | 68 ns sleep_time = t3 - t2; in main() local 69 ns d_ns = t1 - t0 - sleep_time; in main()
|