Home
last modified time | relevance | path

Searched refs:msecs (Results 1 – 25 of 39) sorted by relevance

12

/third_party/node/lib/internal/
Dtimers.js245 constructor(expiry, msecs) { argument
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()) { argument
362 msecs = MathTrunc(msecs);
366 let list = timerListMap[msecs];
368 debug('no %d list was found in insert, creating a new one', msecs);
369 const expiry = start + msecs;
[all …]
Dstream_base_commons.js237 function setStreamTimeout(msecs, callback) { argument
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/
Dtst_process_state.c19 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()
Dtst_thread_state.c18 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()
Dtst_checkpoint.c110 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/
Ddelay.h44 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/
Dtest-http-outgoing-settimeout.js12 setTimeout: common.mustCall((msecs) => {
13 assert.strictEqual(msecs, expectedMsecs);
26 setTimeout: common.mustCall((msecs) => {
27 assert.strictEqual(msecs, expectedMsecs);
Dtest-http2-compat-serverresponse-settimeout.js8 const msecs = common.platformTimeout(1); constant
12 res.setTimeout(msecs, common.mustCall(() => {
17 res.setTimeout(msecs, common.mustNotCall());
19 res.setTimeout(msecs, common.mustNotCall());
Dtest-http2-compat-serverrequest-settimeout.js9 const msecs = common.platformTimeout(1); constant
13 const request = req.setTimeout(msecs, common.mustCall(() => {
19 req.setTimeout(msecs, common.mustNotCall());
21 req.setTimeout(msecs, common.mustNotCall());
/third_party/node/lib/
Dtimers.js101 const msecs = MathTrunc(item._idleTimeout);
102 const list = timerListMap[msecs];
106 delete timerListMap[list.msecs];
119 function enroll(item, msecs) { argument
120 msecs = getTimerDuration(msecs, 'msecs');
127 item._idleTimeout = msecs;
D_http_client.js937 ClientRequest.prototype.setTimeout = function setTimeout(msecs, callback) { argument
943 msecs = getTimerDuration(msecs, 'msecs');
947 setSocketTimeout(this.socket, msecs);
949 this.once('socket', (sock) => setSocketTimeout(sock, msecs));
955 function setSocketTimeout(sock, msecs) { argument
958 sock.setTimeout(msecs);
961 sock.setTimeout(msecs);
D_http_incoming.js190 IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) { argument
193 this.socket.setTimeout(msecs);
/third_party/lwip/src/include/lwip/
Dtimeouts.h110 void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_nam…
111 #define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler) argument
113 void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg);
Dtcpip.h99 err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg);
Dlowpower.h161 err_t sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg);
/third_party/lwip/src/core/ipv4/
Ddhcp.c313 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_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 …EBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs)); in dhcp_select()
1012 u16_t msecs; local
1040 msecs = 10 * 1000;
[all …]
/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_sleepingbarber.c45 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/
Dpopen_spawn_win32.py104 msecs = _winapi.INFINITE
106 msecs = max(0, int(timeout * 1000 + 0.5))
108 res = _winapi.WaitForSingleObject(int(self._handle), msecs)
/third_party/lwip/src/core/
Dtimeouts.c289 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()
Dlowpower.c457 sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg) in sys_timeout() argument
459 return sys_timeout_reg(msecs, handler, arg, in sys_timeout()
/third_party/lwip/src/api/
Dtcpip.c189 sys_timeout(msg->msg.tmo.msecs, msg->msg.tmo.h, msg->msg.tmo.arg); in tcpip_thread_handle_msg()
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/
Dsortvisu.py85 def wait(self, msecs): argument
87 msecs = 0
89 msecs = msecs//10
91 msecs = 1000000000
94 id = self.master.after(msecs, self.master.quit)
/third_party/node/typings/internalBinding/
Dtimers.d.ts4 scheduleTimer(msecs: number): void;
/third_party/node/lib/internal/http2/
Dcompat.js442 setTimeout(msecs, callback) { argument
444 this[kStream].setTimeout(msecs, callback);
807 setTimeout(msecs, callback) { argument
810 this[kStream].setTimeout(msecs, callback);
/third_party/lwip/src/core/ipv6/
Ddhcp6.c464 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 …CE | LWIP_DBG_STATE, ("dhcp6_information_request(): set request timeout %"U16_F" msecs\n", msecs)); in dhcp6_information_request()

12