Home
last modified time | relevance | path

Searched full:timeout (Results 1 – 25 of 4334) sorted by relevance

12345678910>>...174

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Deloop_win.c55 struct dl_list timeout; member
78 dl_list_init(&eloop.timeout); in eloop_init()
241 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local
244 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout()
245 if (timeout == NULL) in eloop_register_timeout()
247 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout()
248 os_free(timeout); in eloop_register_timeout()
251 now_sec = timeout->time.sec; in eloop_register_timeout()
252 timeout->time.sec += secs; in eloop_register_timeout()
253 if (timeout->time.sec < now_sec) { in eloop_register_timeout()
[all …]
Deloop.c117 struct dl_list timeout; member
240 dl_list_init(&eloop.timeout); in eloop_init()
853 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local
856 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout()
857 if (timeout == NULL) in eloop_register_timeout()
859 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout()
860 os_free(timeout); in eloop_register_timeout()
863 now_sec = timeout->time.sec; in eloop_register_timeout()
864 timeout->time.sec += secs; in eloop_register_timeout()
865 if (timeout->time.sec < now_sec) in eloop_register_timeout()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Deloop_win.c55 struct dl_list timeout; member
78 dl_list_init(&eloop.timeout); in eloop_init()
241 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local
244 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout()
245 if (timeout == NULL) in eloop_register_timeout()
247 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout()
248 os_free(timeout); in eloop_register_timeout()
251 now_sec = timeout->time.sec; in eloop_register_timeout()
252 timeout->time.sec += secs; in eloop_register_timeout()
253 if (timeout->time.sec < now_sec) { in eloop_register_timeout()
[all …]
Deloop.c117 struct dl_list timeout; member
238 dl_list_init(&eloop.timeout); in eloop_init()
848 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local
851 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout()
852 if (timeout == NULL) in eloop_register_timeout()
854 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout()
855 os_free(timeout); in eloop_register_timeout()
858 now_sec = timeout->time.sec; in eloop_register_timeout()
859 timeout->time.sec += secs; in eloop_register_timeout()
860 if (timeout->time.sec < now_sec) { in eloop_register_timeout()
[all …]
/third_party/python/Lib/asyncio/
Dtimeouts.py12 "Timeout",
13 "timeout",
27 class Timeout: class
30 Use `timeout()` or `timeout_at()` rather than instantiating this class directly.
34 """Schedule a timeout that will trigger at a given loop time.
36 - If `when` is `None`, the timeout will never trigger.
37 - If `when < loop.time()`, the timeout will trigger on the next
51 """Reschedule the timeout."""
55 f"Cannot change state of {self._state.value} Timeout",
73 """Is timeout expired during execution?"""
[all …]
/third_party/grpc/src/python/grpcio/grpc/beta/
D_client_adaptations.py106 def result(self, timeout=None): argument
108 return self._future.result(timeout=timeout)
116 def exception(self, timeout=None): argument
118 rpc_error_call = self._future.exception(timeout=timeout)
128 def traceback(self, timeout=None): argument
130 return self._future.traceback(timeout=timeout)
188 timeout, argument
207 timeout=timeout,
215 timeout=timeout,
227 timeout, argument
[all …]
/third_party/grpc/src/core/lib/transport/
Dtimeout_encoding.cc48 Timeout Timeout::FromDuration(Duration duration) { in FromDuration()
49 return Timeout::FromMillis(duration.millis()); in FromDuration()
52 double Timeout::RatioVersus(Timeout other) const { in RatioVersus()
63 Duration Timeout::AsDuration() const { in AsDuration()
92 Slice Timeout::Encode() const { in Encode()
166 Timeout Timeout::FromMillis(int64_t millis) { in FromMillis()
168 return Timeout(1, Unit::kNanoseconds); in FromMillis()
170 return Timeout(millis, Unit::kMilliseconds); in FromMillis()
173 if (value % 100 != 0) return Timeout(value, Unit::kTenMilliseconds); in FromMillis()
176 if (value % 10 != 0) return Timeout(value, Unit::kHundredMilliseconds); in FromMillis()
[all …]
/third_party/ltp/testcases/kernel/syscalls/select/
Dselect_var.h22 fd_set *exceptfds, struct timeval *timeout, int faulty_to) in do_select_faulty_to() argument
26 return select(nfds, readfds, writefds, exceptfds, timeout); in do_select_faulty_to()
30 return tst_syscall(__NR_select, nfds, readfds, writefds, exceptfds, timeout); in do_select_faulty_to()
37 ._tvp = (long)timeout, in do_select_faulty_to()
49 ts = timeout; in do_select_faulty_to()
52 _ts.tv_sec = timeout->tv_sec; in do_select_faulty_to()
53 _ts.tv_nsec = timeout->tv_usec * 1000; in do_select_faulty_to()
58 timeout->tv_sec = _ts.tv_sec; in do_select_faulty_to()
59 timeout->tv_usec = _ts.tv_nsec / 1000; in do_select_faulty_to()
70 ts = timeout; in do_select_faulty_to()
[all …]
/third_party/curl/tests/unit/
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 active"},
[all …]
/third_party/python/Lib/test/test_asyncio/
Dtest_timeouts.py18 async with asyncio.timeout(0.01) as cm:
53 async with asyncio.timeout(0.01):
64 async with asyncio.timeout(10) as cm:
76 async with asyncio.timeout(None) as cm:
101 async with asyncio.timeout(0) as cm:
113 async with asyncio.timeout(0) as cm:
125 async with asyncio.timeout(-11) as cm:
135 async with asyncio.timeout(0.01) as cm:
146 async with asyncio.timeout(0.01):
151 async with asyncio.timeout(10) as cm:
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/
Dp2p_find.py3 # Will list all devices found/lost within a time frame (timeout)
17 print(" %s -i <interface_name> [-t <timeout>] \ " \
22 print(" -t = timeout = 0s (infinite)")
43 global timeout
53 def __init__(self,interface_name,wpas_dbus_interface,timeout): argument
55 self.timeout = int(timeout)
111 {'Timeout':int(self.timeout)})
117 # Required for timeout implementation
125 timeout = 0 variable
148 # Timeout
[all …]
Dp2p_listen.py17 print(" %s -i <interface_name> [-t <timeout>] \ " \
22 print(" -t = timeout = 0s (infinite)")
41 global timeout
50 def __init__(self,interface_name,wpas_dbus_interface,timeout): argument
52 self.timeout = int(timeout)
104 self.p2p_interface.Listen(int(self.timeout))
107 # Required for timeout implementation
115 timeout = 0 variable
138 # Timeout
141 timeout = value variable
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/
Dp2p_find.py3 # Will list all devices found/lost within a time frame (timeout)
17 print(" %s -i <interface_name> [-t <timeout>] \ " \
22 print(" -t = timeout = 0s (infinite)")
43 global timeout
53 def __init__(self,interface_name,wpas_dbus_interface,timeout): argument
55 self.timeout = int(timeout)
111 {'Timeout':int(self.timeout)})
117 # Required for timeout implementation
125 timeout = 0 variable
148 # Timeout
[all …]
Dp2p_listen.py17 print(" %s -i <interface_name> [-t <timeout>] \ " \
22 print(" -t = timeout = 0s (infinite)")
41 global timeout
50 def __init__(self,interface_name,wpas_dbus_interface,timeout): argument
52 self.timeout = int(timeout)
104 self.p2p_interface.Listen(int(self.timeout))
107 # Required for timeout implementation
115 timeout = 0 variable
138 # Timeout
141 timeout = value variable
[all …]
/third_party/typescript/tests/baselines/reference/
DweakType.types3 timeout?: number;
4 >timeout : number
11 >getDefaultSettings : () => { timeout: number; }
13 return { timeout: 1000 };
14 >{ timeout: 1000 } : { timeout: number; }
15 >timeout : number
19 new(s: string): { timeout: 1000 }
21 >timeout : 1000
32 >getDefaultSettings : () => { timeout: number; }
34 doSomething(() => ({ timeout: 1000 }));
[all …]
/third_party/backends/backend/
Dpixma.conf.in8 # bjnp-timeout=5000
9 # Specify the timeout (in ms) to be used for all the following
22 # The timeout parameter sets a timeout value for the scanner on
25 # bjnp://myscanner.my.domain:8612 // uses the default 1000ms timeout
26 # bjnp-timeout=5000
27 # bjnp://printer-1.pheasant.org // will use the 5000 ms timeout
28 # bjnp://scanner.bad-network.org/timeout=1500 // timeout set to 1500 ms
29 # bjnp-timeout=3000 // will be used for auto-detected scanners
31 # Example using for a scanner using mfnp including the optional timeout:
32 # mfnp://scanner.bad-network.org/timeout=1500
/third_party/cups/cups/
Dbackchannel.c31 double timeout);
37 * Reads up to "bytes" bytes from the backchannel/backend. The "timeout"
47 double timeout) /* I - Timeout in seconds, typically 0.0 to poll */ in cupsBackChannelRead() argument
50 struct timeval tval; /* Timeout value */ in cupsBackChannelRead()
60 cups_setup(&input, &tval, timeout); in cupsBackChannelRead()
62 if (timeout < 0.0) in cupsBackChannelRead()
70 return (-1); /* Timeout! */ in cupsBackChannelRead()
87 * Writes "bytes" bytes to the backchannel/filter. The "timeout" parameter
99 double timeout) /* I - Timeout in seconds, typically 1.0 */ in cupsBackChannelWrite() argument
102 struct timeval tval; /* Timeout value */ in cupsBackChannelWrite()
[all …]
/third_party/curl/docs/libcurl/
Dcurl_multi_timeout.md25 CURLMcode curl_multi_timeout(CURLM *multi_handle, long *timeout);
34 Proceeding means either doing the socket-style timeout action: call the
39 The timeout value returned in the long **timeout** points to, is in number
41 without waiting for anything. If it returns -1, there is no timeout at all set.
47 Note: if libcurl returns a -1 timeout here, it just means that libcurl
48 currently has no stored timeout value. You must not wait too long (more than a
56 struct timeval timeout;
66 /* no set timeout, use a default */
69 timeout.tv_sec = timeo / 1000;
70 timeout.tv_usec = (timeo % 1000) * 1000;
[all …]
/third_party/openssl/doc/man3/
DSSL_CTX_set_timeout.pod5 SSL_CTX_set_timeout, SSL_CTX_get_timeout - manipulate timeout values for session caching
16 SSL_CTX_set_timeout() sets the timeout for newly created sessions for
17 B<ctx> to B<t>. The timeout value B<t> must be given in seconds.
19 SSL_CTX_get_timeout() returns the currently set timeout value for B<ctx>.
25 timeout value valid at this time. If the actual time is later than creation
26 time plus timeout, the session is not reused.
28 Due to this realization, all sessions behave according to the timeout value
29 valid at the time of the session negotiation. Changes of the timeout value
40 The default value for session timeout is decided on a per protocol
42 All currently supported protocols have the same default timeout value
[all …]
/third_party/protobuf/third_party/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout.h37 // An optional timeout, with nanosecond granularity.
44 // Construct an absolute timeout that should expire at `t`.
47 // Construct a relative timeout that should expire after `d`.
50 // Infinite timeout.
57 // Returns true if there is a timeout that will eventually expire.
58 // Returns false if the timeout is infinite.
61 // If `has_timeout()` is true, returns true if the timeout was provided as an
66 // If `has_timeout()` is true, returns true if the timeout was provided as an
72 // timeout. If !has_timeout() or is_relative_timeout(), attempts to convert to
73 // a reasonable absolute timeout, but callers should to test has_timeout() and
[all …]
/third_party/grpc/src/python/grpcio_testing/grpc_testing/_channel/
D_multi_callable.py27 def __call__(self, request, timeout=None, metadata=None, credentials=None): argument
33 timeout,
37 def with_call(self, request, timeout=None, metadata=None, credentials=None): argument
43 timeout,
47 def future(self, request, timeout=None, metadata=None, credentials=None): argument
53 timeout,
63 def __call__(self, request, timeout=None, metadata=None, credentials=None): argument
69 timeout,
80 self, request_iterator, timeout=None, metadata=None, credentials=None argument
87 timeout,
[all …]
/third_party/skia/third_party/externals/microhttpd/src/testspdy/
Dtest_session_timeout.c21 * @brief tests closing sessions after set timeout. Openssl is used for
36 #define TIMEOUT 2 macro
125 struct timeval timeout; in parentproc() local
146 TIMEOUT, in parentproc()
171 killchild("SPDY_get_timeout returned wrong timeout"); in parentproc()
174 if(now - beginning > TIMEOUT*1000 + SELECT_MS_TIMEOUT) in parentproc()
178 printf("Timeout is: %i\n",TIMEOUT); in parentproc()
179 printf("Select Timeout is: %ims\n",SELECT_MS_TIMEOUT); in parentproc()
181 killchild("Timeout passed but session was not closed"); in parentproc()
183 if(timeoutlong > beginning + TIMEOUT *1000) in parentproc()
[all …]
/third_party/python/Lib/
Dqueue.py122 def put(self, item, block=True, timeout=None): argument
125 If optional args 'block' is true and 'timeout' is None (the default),
126 block if necessary until a free slot is available. If 'timeout' is
127 a non-negative number, it blocks at most 'timeout' seconds and raises
130 is immediately available, else raise the Full exception ('timeout'
138 elif timeout is None:
141 elif timeout < 0:
142 raise ValueError("'timeout' must be a non-negative number")
144 endtime = time() + timeout
154 def get(self, block=True, timeout=None): argument
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/select/
Dpselect.c61 struct timespec timeout; in pselect_normal_0100() local
62 timeout.tv_sec = 5; in pselect_normal_0100()
63 timeout.tv_nsec = 0; in pselect_normal_0100()
67 int ret = pselect(STDOUT_FILENO + 1, NULL, &set, NULL, &timeout, NULL); in pselect_normal_0100()
80 struct timespec timeout; in pselect_error_0100() local
81 timeout.tv_sec = 5; in pselect_error_0100()
82 timeout.tv_nsec = 0; in pselect_error_0100()
86 int ret = pselect(-1, NULL, &set, NULL, &timeout, NULL); in pselect_error_0100()
92 * @tc.desc : Monitor stdout file for readability (timeout)
99 struct timespec timeout; in pselect_timeout_0100() local
[all …]
Dselect.c39 struct timeval timeout; in select_0100() local
40 timeout.tv_sec = 5; in select_0100()
41 timeout.tv_usec = 0; in select_0100()
48 result = select(2, &readfds, &writefds, 0, &timeout); in select_0100()
55 * (invalid parameter, microsecond invalid value in timeout structure)
60 struct timeval timeout; in select_0200() local
61 timeout.tv_sec = -50; in select_0200()
68 result = select(2, &readfds, &writefds, 0, &timeout); in select_0200()
80 struct timeval timeout; in select_0300() local
81 timeout.tv_sec = 0; in select_0300()
[all …]

12345678910>>...174