/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 6-2.c | 47 #define TIMEOUT 2 macro 62 sleep_time_req.tv_sec = TIMEOUT * 2; in sig_handler() 98 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 103 printf("thread: attempt timed read lock, %d seconds\n", TIMEOUT); in th_fn() 149 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); in main() 168 sleep(TIMEOUT); in main() 190 /* wait at most 4*TIMEOUT seconds for thread to exit */ in main() 194 } while (thread_state != EXITING_THREAD && cnt++ < 4 * TIMEOUT); in main() 196 if (cnt >= 4 * TIMEOUT) { in main()
|
H A D | 6-1.c | 56 #define TIMEOUT 5 macro 91 abs_timeout.tv_sec += TIMEOUT; in th_fn() 93 printf("thread: attempt timed read lock, %d seconds\n", TIMEOUT); in th_fn() 136 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); in main() 149 /* wait at most 2*TIMEOUT seconds */ in main() 153 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 155 if (cnt >= 2 * TIMEOUT) { in main() 174 if (wait_time.tv_sec < TIMEOUT) { in main() 177 TIMEOUT, (long int)wait_time.tv_sec, in main()
|
H A D | 3-1.c | 47 #define TIMEOUT 3 macro 68 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_rd() 71 printf("thread: attempt timed read lock, %d secs\n", TIMEOUT); in fn_rd() 185 if (time_diff.tv_sec < TIMEOUT) { in main()
|
H A D | 1-1.c | 44 #define TIMEOUT 3 macro 60 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_rd() 63 printf("thread: attempt timed read lock, %d secs\n", TIMEOUT); in fn_rd() 171 if (time_diff.tv_sec < TIMEOUT) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 6-2.c | 47 #define TIMEOUT 2 macro 62 sleep_time_req.tv_sec = TIMEOUT * 2; in sig_handler() 98 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 103 printf("thread: attempt timed write lock, %d seconds\n", TIMEOUT); in th_fn() 149 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); in main() 168 sleep(TIMEOUT); in main() 190 /* wait at most 4*TIMEOUT seconds for thread to exit */ in main() 194 } while (thread_state != EXITING_THREAD && cnt++ < 4 * TIMEOUT); in main() 196 if (cnt >= 4 * TIMEOUT) { in main()
|
H A D | 6-1.c | 56 #define TIMEOUT 5 macro 89 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 92 printf("thread: attempt timed write lock, %d seconds\n", TIMEOUT); in th_fn() 136 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); in main() 149 /* wait at most 2*TIMEOUT seconds */ in main() 153 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 155 if (cnt >= 2 * TIMEOUT) { in main() 174 if (time_diff.tv_sec < TIMEOUT) { in main() 177 TIMEOUT, (long)time_diff.tv_sec, (long)time_diff.tv_usec); in main()
|
H A D | 3-1.c | 39 #define TIMEOUT 3 macro 73 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_wr() 76 printf("thread: attempt timed write lock, %d secs\n", TIMEOUT); in fn_wr() 134 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 172 /* If the shared data is not altered by child after TIMEOUT*2 seconds, in main() 179 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 190 if (time_diff.tv_sec < TIMEOUT) { in main() 194 TIMEOUT, (long)time_diff.tv_sec, in main() 237 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 248 if (time_diff.tv_sec < TIMEOUT) { in main() [all...] |
H A D | 1-1.c | 37 #define TIMEOUT 3 macro 63 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_wr() 66 printf("thread: attempt timed write lock, %d secs\n", TIMEOUT); in fn_wr() 114 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 152 /* If the shared data is not altered by child after TIMEOUT*2 seconds, in main() 159 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 170 if (time_diff.tv_sec < TIMEOUT) { in main() 173 TIMEOUT, (long)time_diff.tv_sec, in main() 216 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 227 if (time_diff.tv_sec < TIMEOUT) { in main() [all...] |
/third_party/node/test/pummel/ |
H A D | test-fs-watch-file-slow.js | 32 const TIMEOUT = 1300; 42 fs.watchFile(FILENAME, { interval: TIMEOUT - 250 }, function(curr, prev) { 65 setTimeout(createFile, TIMEOUT); 70 setTimeout(touchFile, TIMEOUT); 76 setTimeout(removeFile, TIMEOUT);
|
/third_party/node/test/async-hooks/ |
H A D | test-graph.timeouts.js | 6 const TIMEOUT = 1; 11 setTimeout(common.mustCall(ontimeout), TIMEOUT); 13 setTimeout(onsecondTimeout, TIMEOUT + 1); 17 setTimeout(onthirdTimeout, TIMEOUT + 2);
|
H A D | test-graph.intervals.js | 6 const TIMEOUT = 1; 12 const iv1 = setInterval(common.mustCall(onfirstInterval, 3), TIMEOUT); 18 iv2 = setInterval(common.mustCall(onsecondInterval, 1), TIMEOUT + 1);
|
H A D | test-timers.setTimeout.js | 8 const TIMEOUT = common.platformTimeout(100); 14 setTimeout(common.mustCall(ontimeout), TIMEOUT); 28 setTimeout(onSecondTimeout, TIMEOUT).unref();
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/ |
H A D | 2-1.c | 38 #define TIMEOUT 3 /* 3 seconds of timeout time for macro 91 if (time_diff.tv_sec < TIMEOUT) { in main() 94 TIMEOUT); in main() 130 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in f1() 135 TIMEOUT, (long)currsec1.tv_sec, (long)currsec1.tv_usec); in f1()
|
H A D | 1-1.c | 35 #define TIMEOUT 3 /* 3 seconds of timeout time for macro 88 if (time_diff.tv_sec < TIMEOUT) { in main() 91 TIMEOUT); in main() 117 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in f1() 122 TIMEOUT, (long)currsec1.tv_sec, (long)currsec1.tv_usec); in f1()
|
/third_party/python/Lib/test/ |
H A D | test_sched.py | 10 TIMEOUT = support.SHORT_TIMEOUT variable 72 self.assertEqual(q.get(timeout=TIMEOUT), 1) 77 self.assertEqual(q.get(timeout=TIMEOUT), 2) 78 self.assertEqual(q.get(timeout=TIMEOUT), 3) 81 self.assertEqual(q.get(timeout=TIMEOUT), 4) 84 self.assertEqual(q.get(timeout=TIMEOUT), 5) 143 self.assertEqual(q.get(timeout=TIMEOUT), 1) 150 self.assertEqual(q.get(timeout=TIMEOUT), 3) 153 self.assertEqual(q.get(timeout=TIMEOUT), 4)
|
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_session_timeout.c | 36 #define TIMEOUT 2 macro 146 TIMEOUT, in parentproc() 174 if(now - beginning > TIMEOUT*1000 + SELECT_MS_TIMEOUT) in parentproc() 178 printf("Timeout is: %i\n",TIMEOUT); in parentproc() 183 if(timeoutlong > beginning + TIMEOUT *1000) in parentproc() 187 printf("Timeout is: %i\n",TIMEOUT); in parentproc() 241 sleep(TIMEOUT); in parentproc()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
H A D | 8-1.c | 33 #define TIMEOUT 3 macro 75 ts.tv_sec = ts.tv_sec + TIMEOUT; in main() 77 ts.tv_sec = time(NULL) + TIMEOUT; in main() 88 if ((newtime - oldtime) < TIMEOUT) { in main() 115 sleep(TIMEOUT + 3); /* Parent is probably blocking in main()
|
H A D | 5-2.c | 35 #define TIMEOUT 3 macro 36 #define THRESHOLD (TIMEOUT - 1) 75 ts.tv_sec = time(NULL) + TIMEOUT; in main() 106 sleep(TIMEOUT + 3); /* Parent is probably blocking in main()
|
H A D | 18-1.c | 36 #define TIMEOUT 3 macro 73 ts.tv_sec = time(NULL) + TIMEOUT; in main() 106 sleep(TIMEOUT + 3); /* Parent is probably blocking, in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
H A D | 16-1.c | 42 #define TIMEOUT 7 macro 88 /* child should block in < TIMEOUT seconds */ in main() 92 ts.tv_sec += TIMEOUT; in main() 94 ts.tv_sec = time(NULL) + TIMEOUT; in main() 152 ts.tv_sec = TIMEOUT; in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 4-1.c | 22 #define TIMEOUT 3 macro 47 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in t1_func() 51 TIMEOUT); in t1_func()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/ |
H A D | 3-1.c | 31 #define TIMEOUT 10 macro 63 sleep(TIMEOUT); in a_thread_func() 88 sleep(TIMEOUT / 2); in main()
|
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_sslproto.py | 171 TIMEOUT = support.LONG_TIMEOUT variable in BaseStartTLS 230 sock.settimeout(self.TIMEOUT) 279 with self.tcp_server(serve, timeout=self.TIMEOUT) as srv: 296 sock.settimeout(self.TIMEOUT) 342 with self.tcp_server(serve, timeout=self.TIMEOUT) as srv: 361 sock.settimeout(self.TIMEOUT) 439 with self.tcp_server(serve, timeout=self.TIMEOUT) as srv: 442 timeout=self.TIMEOUT)) 451 sock.settimeout(self.TIMEOUT) 500 with self.tcp_server(serve, timeout=self.TIMEOUT) a [all...] |
/third_party/backends/tools/ |
H A D | check-usb-chip.c | 46 #define TIMEOUT 1000 macro 176 usb_control_msg (handle, 0x40, 0x01, 0x2010, 0x3f40, req, 64, TIMEOUT); in check_gt6801() 186 usb_control_msg (handle, 0xc0, 0x01, 0x2011, 0x3f00, req, 64, TIMEOUT); in check_gt6801() 326 usb_control_msg (handle, 0x40, 0x04, 0x2012, 0x3f40, req, 64, TIMEOUT); in check_gt6816() 336 usb_control_msg (handle, 0xc0, 0x01, 0x2013, 0x3f00, req, 64, TIMEOUT); in check_gt6816() 343 usb_control_msg (handle, 0xc0, 0x01, 0x2013, 0x3f00, req, 8, TIMEOUT); in check_gt6816() 535 usb_control_msg (handle, 0xc0, 0x10, 0x41, 0x0000, req, 64, TIMEOUT); in check_gt8911() 546 usb_control_msg (handle, 0xc0, 0x10, 0x05, 0x0000, req, 64, TIMEOUT); in check_gt8911() 816 result = usb_bulk_write (handle, 0x02, req, 8, TIMEOUT); in check_ma1015() 824 result = usb_bulk_read (handle, 0x81, (char *) &res, 1, TIMEOUT); in check_ma1015() 3444 #define TIMEOUT global() macro [all...] |
/third_party/node/test/parallel/ |
H A D | test-http-server-consumed-timeout.js | 10 const TIMEOUT = common.platformTimeout(200); 11 const INTERVAL = Math.floor(TIMEOUT / 8); 13 runTest(TIMEOUT);
|