/third_party/node/lib/internal/ |
H A D | timers.js | 245 constructor(expiry, msecs) { 250 this.msecs = msecs; 336 const msecs = item._idleTimeout; 337 if (msecs < 0 || msecs === undefined) 340 insert(item, msecs, start); 360 function insert(item, msecs, start = getLibuvNow()) { 362 msecs = MathTrunc(msecs); [all...] |
H A D | stream_base_commons.js | 237 function setStreamTimeout(msecs, callback) { 241 this.timeout = msecs; 244 msecs = getTimerDuration(msecs, 'msecs'); 250 if (msecs === 0) { 256 this[kTimeout] = setUnrefTimeout(this._onTimeout.bind(this), msecs);
|
/third_party/ltp/lib/ |
H A D | tst_process_state.c | 19 unsigned int msecs = 0; in tst_process_state_wait() local 31 msecs += 1; in tst_process_state_wait() 33 if (msec_timeout && msecs >= msec_timeout) { in tst_process_state_wait() 74 unsigned int msecs = 0; in tst_process_exit_wait() local 81 msecs += 1; in tst_process_exit_wait() 83 if (msec_timeout && msecs >= msec_timeout) { in tst_process_exit_wait()
|
H A D | tst_thread_state.c | 18 unsigned int msecs = 0; in tst_thread_state_wait() local 29 msecs += 1; in tst_thread_state_wait() 31 if (msec_timeout && msecs >= msec_timeout) { in tst_thread_state_wait()
|
H A D | tst_checkpoint.c | 110 unsigned int msecs = 0, waked = 0; in tst_checkpoint_wake() local 128 msecs++; in tst_checkpoint_wake() 130 if (msecs >= msec_timeout) { in tst_checkpoint_wake()
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/ |
H A D | delay.h | 44 linux_msleep(unsigned int msecs) in linux_msleep() argument 46 LOS_Msleep(msecs); in linux_msleep() 61 unsigned long msecs = (x + 1000 - 1) / 1000; /* 1000ns = 1us */ in ndelay() local 62 LOS_Udelay(msecs); in ndelay()
|
/third_party/node/test/parallel/ |
H A D | test-http-outgoing-settimeout.js | 12 setTimeout: common.mustCall((msecs) => { 13 assert.strictEqual(msecs, expectedMsecs); 26 setTimeout: common.mustCall((msecs) => { 27 assert.strictEqual(msecs, expectedMsecs);
|
/third_party/lwip/src/include/lwip/ |
H A D | timeouts.h | 110 void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_name); 111 #define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler) 113 void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg);
|
H A D | tcpip.h | 99 err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg);
|
H A D | lowpower.h | 161 err_t sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg);
|
/third_party/node/lib/ |
H A D | timers.js | 101 const msecs = MathTrunc(item._idleTimeout); 102 const list = timerListMap[msecs]; 106 delete timerListMap[list.msecs]; 119 function enroll(item, msecs) { 120 msecs = getTimerDuration(msecs, 'msecs'); 127 item._idleTimeout = msecs;
|
H A D | _http_client.js | 937 ClientRequest.prototype.setTimeout = function setTimeout(msecs, callback) { 943 msecs = getTimerDuration(msecs, 'msecs'); 947 setSocketTimeout(this.socket, msecs); 949 this.once('socket', (sock) => setSocketTimeout(sock, msecs)); 955 function setSocketTimeout(sock, msecs) { 958 sock.setTimeout(msecs); 961 sock.setTimeout(msecs);
|
H A D | _http_incoming.js | 190 IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) { 193 this.socket.setTimeout(msecs);
|
/third_party/lwip/src/core/ipv4/ |
H A D | dhcp.c | 313 u16_t msecs; in dhcp_check() local 326 msecs = 500; in dhcp_check() 327 dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); in dhcp_check() 328 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs)); in dhcp_check() 376 u16_t msecs; in dhcp_select() local 425 msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000); in dhcp_select() 426 dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); in dhcp_select() 427 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs)); in dhcp_select() 1012 u16_t msecs; global() local 1058 u16_t msecs; global() local 1220 u16_t msecs; global() local 1276 u16_t msecs; global() local 1330 u16_t msecs; global() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
H A D | sem_sleepingbarber.c | 45 static void mdelay(unsigned msecs) in mdelay() argument 48 req.tv_sec = msecs / 1000; in mdelay() 49 req.tv_nsec = (msecs % 1000) * 1000000; in mdelay()
|
/third_party/python/Lib/multiprocessing/ |
H A D | popen_spawn_win32.py | 105 msecs = _winapi.INFINITE 107 msecs = max(0, int(timeout * 1000 + 0.5)) 109 res = _winapi.WaitForSingleObject(int(self._handle), msecs)
|
/third_party/lwip/src/core/ |
H A D | timeouts.c | 283 * @param msecs time in milliseconds after that the timer should expire 284 * @param handler callback function to call when msecs have elapsed 289 sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name) in sys_timeout_debug() argument 292 sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg) in sys_timeout_debug() 299 LWIP_ASSERT("Timeout time too long, max is LWIP_UINT32_MAX/4 msecs", msecs <= (LWIP_UINT32_MAX / 4)); in sys_timeout_debug() 301 next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */ in sys_timeout_debug()
|
/third_party/backends/backend/ |
H A D | u12-scanner.h | 59 #define _DODELAY(msecs) u12io_udelay(1000*msecs) 60 /*{ int i; for( i = msecs; i--; ) _DO_UDELAY(1000); }*/ 62 #define _DODELAY(msecs)
|
H A D | plustek-pp_scan.h | 122 # define _DODELAY(msecs) { int i; for( i = msecs; i--; ) _DO_UDELAY(1000); }
|
/third_party/lwip/src/api/ |
H A D | tcpip.c | 189 sys_timeout(msg->msg.tmo.msecs, msg->msg.tmo.h, msg->msg.tmo.arg); in tcpip_thread_handle_msg() 441 * @param msecs time in milliseconds for timeout 447 tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg) in tcpip_timeout() argument 459 msg->msg.tmo.msecs = msecs; in tcpip_timeout()
|
/third_party/python/Tools/demo/ |
H A D | sortvisu.py | 85 def wait(self, msecs): 87 msecs = 0 89 msecs = msecs//10 91 msecs = 1000000000 94 id = self.master.after(msecs, self.master.quit)
|
/third_party/node/lib/internal/http2/ |
H A D | compat.js | 442 setTimeout(msecs, callback) { 444 this[kStream].setTimeout(msecs, callback); 807 setTimeout(msecs, callback) { 810 this[kStream].setTimeout(msecs, callback);
|
/third_party/lwip/src/core/ipv6/ |
H A D | dhcp6.c | 464 u16_t msecs; in dhcp6_information_request() local 493 msecs = (u16_t)((dhcp6->tries < 6 ? 1 << dhcp6->tries : 60) * 1000); in dhcp6_information_request() 494 dhcp6->request_timeout = (u16_t)((msecs + DHCP6_TIMER_MSECS - 1) / DHCP6_TIMER_MSECS); in dhcp6_information_request() 495 LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp6_information_request(): set request timeout %"U16_F" msecs\n", msecs)); in dhcp6_information_request()
|
/third_party/node/deps/npm/node_modules/debug/node_modules/ms/ |
H A D | index.js | 53 var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( 96 case 'msecs':
|
/third_party/node/deps/npm/node_modules/ms/ |
H A D | index.js | 53 var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( 96 case 'msecs':
|