Home
last modified time | relevance | path

Searched refs:timeout (Results 301 - 325 of 2205) sorted by relevance

1...<<11121314151617181920>>...89

/third_party/curl/tests/unit/
H A Dunit1303.c58 #define TIMEOUTS(x,y) data->set.timeout = x; data->set.connecttimeout = y
88 {BASE + 10, 0, 10000, 8000, FALSE, -1, "timeout is -1, expired"},
94 {BASE + 8, 0, 10000, 8000, TRUE, -1, "timeout is -1, expired"},
97 /* no connect timeout set, not connecting */
100 {BASE + 10, 0, 10000, 0, FALSE, -1, "timeout is -1, expired"},
103 /* no connect timeout set, connecting */
106 {BASE + 10, 0, 10000, 0, TRUE, -1, "timeout is -1, expired"},
109 /* only connect timeout set, not connecting */
110 {BASE + 4, 0, 0, 10000, FALSE, 0, "no timeout active"},
111 {BASE + 4, 990000, 0, 10000, FALSE, 0, "no timeout activ
145 timediff_t timeout; global() variable
[all...]
/third_party/curl/tests/libtest/
H A Dlib1515.c77 struct timeval timeout; in do_one_request() local
84 timeout.tv_sec = 1; in do_one_request()
85 timeout.tv_usec = 0; in do_one_request()
88 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in do_one_request()
/third_party/eudev/src/udev/
H A Dudevadm-settle.c44 " -t --timeout=SECONDS Maximum time to wait for events\n" in help()
51 { "timeout", required_argument, NULL, 't' }, in adm_settle()
61 unsigned int timeout = 120; in adm_settle() local
73 r = safe_atou(optarg, &timeout); in adm_settle()
75 fprintf(stderr, "Invalid timeout value '%s': %s\n", in adm_settle()
109 deadline = now(CLOCK_MONOTONIC) + timeout * USEC_PER_SEC; in adm_settle()
117 if (udev_ctrl_send_ping(uctrl, MAX(5U, timeout)) < 0) { in adm_settle()
/third_party/ltp/lib/
H A Dtst_checkpoint.c85 struct timespec timeout; in tst_checkpoint_wait() local
96 timeout.tv_sec = msec_timeout/1000; in tst_checkpoint_wait()
97 timeout.tv_nsec = (msec_timeout%1000) * 1000000; in tst_checkpoint_wait()
101 tst_futexes[id], &timeout); in tst_checkpoint_wait()
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_pmtud.c94 ngtcp2_tstamp timeout; in ngtcp2_pmtud_probe_sent() local
97 timeout = pto; in ngtcp2_pmtud_probe_sent()
99 timeout = 3 * pto; in ngtcp2_pmtud_probe_sent()
102 pmtud->expiry = ts + timeout; in ngtcp2_pmtud_probe_sent()
/third_party/node/deps/npm/node_modules/retry/lib/
H A Dretry.js54 var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
55 timeout = Math.min(timeout, opts.maxTimeout);
57 return timeout;
/third_party/ltp/testcases/kernel/syscalls/times/
H A Dtimes03.c30 static volatile int timeout; variable
35 timeout = 1; in sighandler()
44 while (!timeout) in work()
48 timeout = 0; in work()
/third_party/ltp/testcases/kernel/syscalls/select/
H A Dselect01.c9 * 1.) select(2) to fd of regular file with no I/O and small timeout
10 * 2.) select(2) to fd of system pipe with no I/O and small timeout
11 * 3.) select(2) of fd of a named-pipe (FIFO) with no I/O and small timeout value
40 struct timeval timeout; in run() local
44 timeout.tv_sec = 0; in run()
45 timeout.tv_usec = 100000; in run()
52 TEST(do_select(*tc->nfds + 1, tc->readfds, tc->writefds, 0, &timeout)); in run()
/third_party/ltp/testcases/kernel/syscalls/recvmmsg/
H A Drecvmmsg01.c8 * - EINVAL Bad seconds value for the timeout argument
9 * - EINVAL Bad nanoseconds value for the timeout argument
10 * - EFAULT Bad timeout address
53 .desc = "negative seconds in timeout",
61 .desc = "overflow in nanoseconds in timeout",
69 .desc = "bad timeout address",
81 void *timeout; in do_test() local
88 timeout = bad_addr; in do_test()
90 timeout = tst_ts_get(&ts); in do_test()
92 TST_EXP_FAIL2(tv->recvmmsg(*tc->fd, *tc->msg_vec, VLEN, 0, timeout), in do_test()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-1.c42 struct timespec timeout; in t1_func() local
58 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in t1_func()
59 timeout.tv_nsec = curtime.tv_usec * 1000; in t1_func()
62 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout); in t1_func()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
H A D3-1.c12 * shall be terminated when the specified timeout expires.
57 struct timespec timeout, ts; in fn_rd() local
68 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_rd()
69 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_rd()
72 rc = pthread_rwlock_timedrdlock(&rwlock, &timeout); in fn_rd()
170 /* we expect rd_thread2 to block and timeout. */ in main()
188 "but the timeout is not correct: " in main()
H A D1-1.c12 * shall be terminated when the specified timeout expires.
54 struct timespec timeout; in fn_rd() local
60 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_rd()
61 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_rd()
64 rc = pthread_rwlock_timedrdlock(&rwlock, &timeout); in fn_rd()
156 /* we expect rd_thread2 to block and timeout. */ in main()
173 ("Test FAILED: the timer expired and thread terminated, but the timeout is not correct: start time %ld.%06ld, end time %ld.%06ld\n", in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
H A D2-2.c37 struct timespec timeout; in thr_func() local
54 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in thr_func()
55 timeout.tv_nsec = curtime.tv_usec * 1000; in thr_func()
59 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout); in thr_func()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
H A D2-2.c37 struct timespec timeout; in thr_func() local
54 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in thr_func()
55 timeout.tv_nsec = curtime.tv_usec * 1000; in thr_func()
60 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout); in thr_func()
/third_party/node/deps/v8/src/builtins/
H A Dbuiltins-wasm-gen.cc69 TNode<BigInt> timeout = BigIntFromInt32Pair(timeout_low, timeout_high); in TF_BUILTIN() local
76 address_number, expected_value_number, timeout)); in TF_BUILTIN()
98 TNode<BigInt> timeout = BigIntFromInt32Pair(timeout_low, timeout_high); in TF_BUILTIN() local
105 address_number, expected_value, timeout)); in TF_BUILTIN()
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dpoll.c64 // Set timeout to 0 to prevent waiting for polling if hardening tests fail. in poll_0020()
144 // Set timeout to zero to prevent waiting in ppoll when fortify test fails. in ppoll_0020()
145 struct timespec timeout; in ppoll_0020() local
146 timeout.tv_sec = timeout.tv_nsec = 0; in ppoll_0020()
155 ppoll(buf, fd_count, &timeout, NULL); in ppoll_0020()
/third_party/musl/libc-test/src/functionalext/supplement/network/
H A D__recvmmsg_time64.c84 struct timespec timeout; in recvsss() local
108 timeout.tv_sec = TIMEOUT; in recvsss()
109 timeout.tv_nsec = 0; in recvsss()
111 retval = __recvmmsg_time64(sockfd, msgs, VLEN, 0, &timeout); in recvsss()
H A Drecvmmsg.c82 struct timespec timeout; in recvsss() local
106 timeout.tv_sec = TIMEOUT; in recvsss()
107 timeout.tv_nsec = 0; in recvsss()
109 retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout); in recvsss()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DFence.cpp106 GLuint64 timeout, in clientWait()
110 return mFence->clientWait(context, flags, timeout, outResult); in clientWait()
113 angle::Result Sync::serverWait(const Context *context, GLbitfield flags, GLuint64 timeout) in serverWait() argument
115 return mFence->serverWait(context, flags, timeout); in serverWait()
104 clientWait(const Context *context, GLbitfield flags, GLuint64 timeout, GLenum *outResult) clientWait() argument
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkTimelineSemaphore.hpp147 const std::chrono::time_point<Clock, Duration> timeout) in wait()
149 return shared->wait(value, timeout); in wait()
154 const std::chrono::time_point<Clock, Duration> timeout) in wait()
157 if(!cv.wait_until(lock, timeout, [&]() { return counter == value; })) in wait()
146 wait(uint64_t value, const std::chrono::time_point<Clock, Duration> timeout) wait() argument
153 wait(uint64_t value, const std::chrono::time_point<Clock, Duration> timeout) wait() argument
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/InnerAPI/
H A Dapi_test.cpp535 .timeout = 0, in HWTEST_F()
564 .timeout = 0, in HWTEST_F()
594 .timeout = 0, in HWTEST_F()
627 .timeout = 0, in HWTEST_F()
657 .timeout = 0, in HWTEST_F()
687 .timeout = 0, in HWTEST_F()
721 .timeout = 0, in HWTEST_F()
755 .timeout = 0, in HWTEST_F()
789 .timeout = 0, in HWTEST_F()
823 .timeout in HWTEST_F()
[all...]
/third_party/python/Modules/
H A D_threadmodule.c75 /* Helper to acquire an interruptible lock with a timeout. If the lock acquire
79 * timeout.
82 acquire_timed(PyThread_type_lock lock, _PyTime_t timeout) in acquire_timed() argument
85 if (timeout > 0) { in acquire_timed()
86 endtime = _PyDeadline_Init(timeout); in acquire_timed()
92 microseconds = _PyTime_AsMicroseconds(timeout, _PyTime_ROUND_CEILING); in acquire_timed()
110 /* If we're using a timeout, recompute the timeout after processing in acquire_timed()
112 if (timeout > 0) { in acquire_timed()
113 timeout in acquire_timed()
128 lock_acquire_parse_args(PyObject *args, PyObject *kwds, _PyTime_t *timeout) lock_acquire_parse_args() argument
175 _PyTime_t timeout; lock_PyThread_acquire_lock() local
357 _PyTime_t timeout; rlock_acquire() local
[all...]
/third_party/libuv/test/
H A Dtest-metrics.c54 const uint64_t timeout = 1000; in TEST_IMPL() local
64 ASSERT_OK(uv_timer_start(&timer, timer_spin_cb, timeout, 0)); in TEST_IMPL()
71 /* Permissive check that the idle time matches within the timeout ±500 ms. */ in TEST_IMPL()
72 ASSERT_LE(idle_time, (timeout + 500) * UV_NS_TO_MS); in TEST_IMPL()
73 ASSERT_GE(idle_time, (timeout - 500) * UV_NS_TO_MS); in TEST_IMPL()
81 const uint64_t timeout = 1000; in metrics_routine_cb() local
93 ASSERT_OK(uv_timer_start(&timer, timer_spin_cb, timeout, 0)); in metrics_routine_cb()
104 ASSERT_GE(idle_time, (timeout - 500) * UV_NS_TO_MS); in metrics_routine_cb()
/third_party/skia/third_party/externals/microhttpd/src/microspdy/
H A Ddaemon.c393 unsigned long long *timeout) in SPDYF_get_timeout()
423 *timeout = 0; in SPDYF_get_timeout()
425 *timeout = earliest_deadline - now; in SPDYF_get_timeout()
459 || (daemon->session_timeout //timeout passed for the session in SPDYF_get_fdset()
483 struct timeval timeout; in SPDYF_run() local
486 timeout.tv_sec = 0; in SPDYF_run()
487 timeout.tv_usec = 0; in SPDYF_run()
494 num_ready = select (max + 1, &rs, &ws, &es, &timeout); in SPDYF_run()
392 SPDYF_get_timeout(struct SPDY_Daemon *daemon, unsigned long long *timeout) SPDYF_get_timeout() argument
/third_party/python/Lib/test/
H A Dtest_timeout.py1 """Unit tests for socket timeout feature."""
17 We must perform name resolution before timeout tests, otherwise it will be
37 "timeout not disabled by default")
118 def _sock_operation(self, count, timeout, method, *args):
123 within `timeout` + self.fuzz seconds.
125 self.sock.settimeout(timeout)
137 self.assertLess(delta, timeout + self.fuzz)
138 self.assertGreater(delta, timeout - 1.0)
142 """TCP test case for socket.socket() timeout functions"""
153 # Testing connect timeout i
[all...]

Completed in 12 milliseconds

1...<<11121314151617181920>>...89