Home
last modified time | relevance | path

Searched refs:sleep_time (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/jerryscript/jerry-port/default/
Ddefault-debugger.c37 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.py49 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/
Dsleep.cc36 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/
Dplatform_thread.cc86 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/
Dplatform_thread.cc86 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/
Dsleep.cc50 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/
Dmultiple_killed_watching_threads_driver.rb23 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)
Dmultiple_killed_watching_threads_test.rb23 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/
D14-1.c46 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/
Dmmapstress06.c67 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/
Dmulti-resource.c491 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/
D4-3.c62 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/
Dtst_timer_test.c35 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/
Dfailure_signal_handler.cc287 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/
Dfailure_signal_handler.cc296 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/
Dthreadpool.cc33 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/
Dfifo_test.c44 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/
Ddefault_pass.cpp65 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/
Ddefault_pass.cpp77 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/
Dmutex_pass.cpp79 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/
Dmutex_pass.cpp78 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/
Dlock_pass.cpp72 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/
Dlock_pass.cpp71 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/
Ddefault_pass.cpp74 ns sleep_time = t3 - t2; in main() local
75 ns d_ns = t1 - t0 - sleep_time; in main()
Dmake_lock_guard_pass.cpp68 ns sleep_time = t3 - t2; in main() local
69 ns d_ns = t1 - t0 - sleep_time; in main()

1234