Home
last modified time | relevance | path

Searched refs:timeout_ms (Results 1 – 25 of 69) sorted by relevance

123

/third_party/lwip/test/sockets/
Dsockets_stresstest.c180 sockets_stresstest_wait_readable_select(int s, int timeout_ms) in sockets_stresstest_wait_readable_select() argument
195 tv.tv_sec = timeout_ms / 1000; in sockets_stresstest_wait_readable_select()
196 tv.tv_usec = (timeout_ms - (tv.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_select()
219 sockets_stresstest_wait_readable_poll(int s, int timeout_ms) in sockets_stresstest_wait_readable_poll() argument
228 ret = lwip_poll(&pfd, 1, timeout_ms); in sockets_stresstest_wait_readable_poll()
249 sockets_stresstest_wait_readable_recvtimeo(int s, int timeout_ms) in sockets_stresstest_wait_readable_recvtimeo() argument
254 int opt_on = timeout_ms; in sockets_stresstest_wait_readable_recvtimeo()
258 opt_on.tv_sec = timeout_ms / 1000; in sockets_stresstest_wait_readable_recvtimeo()
259 opt_on.tv_usec = (timeout_ms - (opt_on.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_recvtimeo()
290 sockets_stresstest_wait_readable_wait_peek(int s, int timeout_ms) in sockets_stresstest_wait_readable_wait_peek() argument
[all …]
/third_party/libwebsockets/lib/plat/windows/
Dwindows-service.c60 _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi) in _lws_plat_service_tsi() argument
87 if (timeout_ms < 0) in _lws_plat_service_tsi()
88 timeout_ms = 0; in _lws_plat_service_tsi()
91 timeout_ms = 2000000000; in _lws_plat_service_tsi()
92 timeout_us = ((lws_usec_t)timeout_ms) * LWS_US_PER_MS; in _lws_plat_service_tsi()
183 lws_plat_service(struct lws_context *context, int timeout_ms) in lws_plat_service() argument
185 return _lws_plat_service_tsi(context, timeout_ms, 0); in lws_plat_service()
/third_party/libwebsockets/lib/plat/unix/
Dunix-service.c72 _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi) in _lws_plat_service_tsi() argument
99 if (timeout_ms < 0) in _lws_plat_service_tsi()
100 timeout_ms = 0; in _lws_plat_service_tsi()
103 timeout_ms = LWS_POLL_WAIT_LIMIT; in _lws_plat_service_tsi()
104 timeout_us = ((lws_usec_t)timeout_ms) * LWS_US_PER_MS; in _lws_plat_service_tsi()
233 lws_plat_service(struct lws_context *context, int timeout_ms) in lws_plat_service() argument
235 return _lws_plat_service_tsi(context, timeout_ms, 0); in lws_plat_service()
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-service.c28 lws_plat_service(struct lws_context *context, int timeout_ms) in lws_plat_service() argument
30 int n = _lws_plat_service_tsi(context, timeout_ms, 0); in lws_plat_service()
41 _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi) in _lws_plat_service_tsi() argument
83 if (timeout_ms < 0) in _lws_plat_service_tsi()
84 timeout_ms = 0; in _lws_plat_service_tsi()
87 timeout_ms = 2000000000; in _lws_plat_service_tsi()
88 timeout_us = ((lws_usec_t)timeout_ms) * LWS_US_PER_MS; in _lws_plat_service_tsi()
/third_party/libwebsockets/lib/plat/optee/
Dnetwork.c90 _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi) in _lws_plat_service_tsi() argument
92 lws_usec_t timeout_us = timeout_ms * LWS_US_PER_MS; in _lws_plat_service_tsi()
104 if (timeout_ms < 0) in _lws_plat_service_tsi()
105 timeout_ms = 0; in _lws_plat_service_tsi()
107 timeout_ms = 2000000000; in _lws_plat_service_tsi()
192 lws_plat_service(struct lws_context *context, int timeout_ms) in lws_plat_service() argument
194 return _lws_plat_service_tsi(context, timeout_ms, 0); in lws_plat_service()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_sync.c180 DWORD timeout_ms; in dzn_sync_wait() local
183 int timeout_ms; in dzn_sync_wait() local
188 timeout_ms = timeout_infinite; in dzn_sync_wait()
194 timeout_ms = (rel_timeout_ns / 1000000) + (rel_timeout_ns % 1000000 ? 1 : 0); in dzn_sync_wait()
199 WaitForSingleObject(event, timeout_ms); in dzn_sync_wait()
208 VkResult ret = sync_wait(event_fd, timeout_ms) != 0 ? VK_TIMEOUT : VK_SUCCESS; in dzn_sync_wait()
/third_party/libwebsockets/include/libwebsockets/
Dlws-service.h52 lws_service(struct lws_context *context, int timeout_ms);
65 lws_service_tsi(struct lws_context *context, int timeout_ms, int tsi);
153 lws_service_adjust_timeout(struct lws_context *context, int timeout_ms, int tsi);
/third_party/libbpf/src/
Dringbuf.c297 int ring_buffer__poll(struct ring_buffer *rb, int timeout_ms) in ring_buffer__poll() argument
302 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll()
533 void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb, __u32 size, int timeout_ms) in user_ring_buffer__reserve_blocking() argument
536 int err, ms_remaining = timeout_ms; in user_ring_buffer__reserve_blocking()
539 if (timeout_ms < 0 && timeout_ms != -1) in user_ring_buffer__reserve_blocking()
542 if (timeout_ms != -1) { in user_ring_buffer__reserve_blocking()
574 if (timeout_ms == -1) in user_ring_buffer__reserve_blocking()
582 ms_remaining = timeout_ms - ms_elapsed; in user_ring_buffer__reserve_blocking()
/third_party/libcoap/src/
Dcoap_io_riot.c184 coap_io_process(coap_context_t *ctx, uint32_t timeout_ms) { in coap_io_process() argument
197 if (timeout == 0 || timeout_ms < timeout) in coap_io_process()
198 timeout = timeout_ms; in coap_io_process()
204 if (timeout == 0 || timeout_ms < timeout) in coap_io_process()
205 timeout = timeout_ms; in coap_io_process()
207 xtimer_msg_receive_timeout(&msg, timeout_ms * US_PER_SEC); in coap_io_process()
Dcoap_io.c1368 coap_io_process(coap_context_t *ctx, uint32_t timeout_ms) { argument
1369 return coap_io_process_with_fds(ctx, timeout_ms, 0, NULL, NULL, NULL);
1373 coap_io_process_with_fds(coap_context_t *ctx, uint32_t timeout_ms, argument
1409 if (timeout == 0 || timeout_ms < timeout)
1410 timeout = timeout_ms;
1450 if (timeout_ms == COAP_IO_NO_WAIT) {
1511 if (timeout == 0 || timeout_ms < timeout)
1512 timeout = timeout_ms;
1519 if (timeout_ms == COAP_IO_NO_WAIT) {
1547 timeout_ms = COAP_IO_NO_WAIT;
[all …]
/third_party/toybox/lib/
Dtty.c176 int scan_key_getsize(char *scratch, int timeout_ms, unsigned *xx, unsigned *yy) in scan_key_getsize() argument
226 if (maybe || timeout_ms != -1) in scan_key_getsize()
227 if (!xpoll(&pfd, 1, maybe ? 30 : timeout_ms)) break; in scan_key_getsize()
246 int scan_key(char *scratch, int timeout_ms) in scan_key() argument
248 return scan_key_getsize(scratch, timeout_ms, NULL, NULL); in scan_key()
/third_party/libuv/docs/code/uvwget/
Dmain.c103 void start_timeout(CURLM *multi, long timeout_ms, void *userp) { in start_timeout() argument
104 if (timeout_ms <= 0) in start_timeout()
105 timeout_ms = 1; /* 0 means directly call socket_action, but we'll do it in a bit */ in start_timeout()
106 uv_timer_start(&timeout, on_timeout, timeout_ms, 0); in start_timeout()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_fence.cpp54 …DWORD timeout_ms = (timeout_ns == PIPE_TIMEOUT_INFINITE || timeout_ns > MaxTimeoutInNs) ? INFINITE… in wait_event() local
55 return WaitForSingleObject(event, timeout_ms) == WAIT_OBJECT_0; in wait_event()
79 …int timeout_ms = (timeout_ns == PIPE_TIMEOUT_INFINITE || timeout_ns > MaxTimeoutInNs) ? -1 : timeo… in wait_event() local
80 return sync_wait(event_fd, timeout_ms) == 0; in wait_event()
/third_party/iowow/src/utils/
Diwth.c8 iwrc iw_cond_timed_wait_ms(pthread_cond_t *cond, pthread_mutex_t *mtx, long timeout_ms, bool *out_i… in iw_cond_timed_wait_ms() argument
20 tp.tv_sec += timeout_ms / 1000; in iw_cond_timed_wait_ms()
21 tp.tv_nsec += (timeout_ms % 1000) * 1000000; in iw_cond_timed_wait_ms()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-blob/
Dminimal-secure-streams.c44 static unsigned int timeout_ms = 3000; variable
310 lws_ss_start_timeout(m->ss, timeout_ms); in myss_state()
519 timeout_ms = (unsigned int)atoi(p); in main()
523 if (timeout_ms == 3000) in main()
528 timeout_ms = 60000; in main()
/third_party/libcoap/include/coap3/
Dnet.h565 int coap_io_process(coap_context_t *ctx, uint32_t timeout_ms);
595 int coap_io_process_with_fds(coap_context_t *ctx, uint32_t timeout_ms,
735 coap_run_once(coap_context_t *ctx, uint32_t timeout_ms) in coap_run_once() argument
737 return coap_io_process(ctx, timeout_ms); in coap_run_once()
/third_party/libwebsockets/lib/core-net/
Dservice.c297 lws_service_adjust_timeout(struct lws_context *context, int timeout_ms, int tsi) in lws_service_adjust_timeout() argument
329 if (u && u < (lws_usec_t)timeout_ms * (lws_usec_t)1000) in lws_service_adjust_timeout()
330 timeout_ms = (int)(u / 1000); in lws_service_adjust_timeout()
375 return timeout_ms; in lws_service_adjust_timeout()
819 lws_service(struct lws_context *context, int timeout_ms) in lws_service() argument
838 n = lws_plat_service(context, timeout_ms); in lws_service()
847 lws_service_tsi(struct lws_context *context, int timeout_ms, int tsi) in lws_service_tsi() argument
870 n = _lws_plat_service_tsi(context, timeout_ms, tsi); in lws_service_tsi()
/third_party/ltp/testcases/kernel/syscalls/tkill/
Dtkill01.c39 int timeout_ms = 1000; in run() local
45 while (timeout_ms--) { in run()
/third_party/mesa3d/src/util/
Dfutex.h144 DWORD timeout_ms = INFINITE; in futex_wait() local
149 timeout_ms = (timeout->tv_sec - tsnow.tv_nsec) * 1000 + in futex_wait()
153 if (WaitOnAddress(addr, &value, sizeof(value), timeout_ms)) in futex_wait()
/third_party/cef/tests/ceftests/
Dtest_handler.cc340 void TestHandler::OnTestTimeout(int timeout_ms, bool treat_as_error) { in OnTestTimeout() argument
343 EXPECT_TRUE(false) << "Test timed out after " << timeout_ms << "ms"; in OnTestTimeout()
430 void TestHandler::SetTestTimeout(int timeout_ms, bool treat_as_error) { in SetTestTimeout() argument
433 timeout_ms, treat_as_error)); in SetTestTimeout()
451 timeout_ms, treat_as_error), in SetTestTimeout()
452 timeout_ms); in SetTestTimeout()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-perf/
Dminimal-secure-streams.c43 static unsigned int timeout_ms = 3000; variable
256 lws_ss_start_timeout(m->ss, timeout_ms); in myss_state()
462 timeout_ms = (unsigned int)atoi(p); in main()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-stress/
Dminimal-secure-streams.c45 static unsigned int timeout_ms = 8000; variable
314 lws_ss_start_timeout(m->ss, timeout_ms); in myss_state()
621 timeout_ms = (unsigned int)atoi(p); in main()
694 (lws_usec_t)timeout_ms * LWS_US_PER_MS)); in main()
/third_party/rust/crates/nix/src/sys/
Depoll.rs116 timeout_ms: isize, in epoll_wait()
123 timeout_ms as c_int, in epoll_wait()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams/
Dminimal-secure-streams.c44 static unsigned int timeout_ms = 3000; variable
316 lws_ss_start_timeout(m->ss, timeout_ms); in myss_state()
569 timeout_ms = (unsigned int)atoi(p); in main()
/third_party/libuv/test/
Dtest-timer.c334 const uint64_t timeout_ms = 10; in TEST_IMPL() local
336 timer_early_check_expected_time = uv_now(uv_default_loop()) + timeout_ms; in TEST_IMPL()
339 ASSERT(0 == uv_timer_start(&timer_handle, timer_early_check_cb, timeout_ms, 0)); in TEST_IMPL()

123