| /third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
| D | eloop_win.c | 55 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 …]
|
| D | eloop.c | 117 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/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
| D | eloop_win.c | 55 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 …]
|
| D | eloop.c | 117 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/python/Lib/asyncio/ |
| D | timeouts.py | 12 "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/curl/tests/unit/ |
| D | unit1303.c | 58 #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/ |
| D | test_timeouts.py | 18 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/ltp/testcases/kernel/syscalls/select/ |
| D | select_var.h | 22 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/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/ |
| D | p2p_find.py | 3 # 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 …]
|
| D | p2p_listen.py | 17 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/ |
| D | weakType.types | 3 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/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/ |
| D | p2p_find.py | 3 # 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 …]
|
| D | p2p_listen.py | 17 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/skia/third_party/externals/microhttpd/src/testspdy/ |
| D | test_session_timeout.c | 21 * @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/ |
| D | queue.py | 122 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 …]
|
| D | selectors.py | 155 def select(self, timeout=None): argument 157 ready or a timeout expires. 160 timeout -- if timeout > 0, this specifies the maximum wait time, in 162 if timeout <= 0, the select() call won't block, and will 164 if timeout is None, select() will block until a monitored 313 def _select(self, r, w, _, timeout=None): argument 314 r, w, x = select.select(r, w, w, timeout) 319 def select(self, timeout=None): argument 320 timeout = None if timeout is None else max(timeout, 0) 323 r, w, _ = self._select(self._readers, self._writers, [], timeout) [all …]
|
| /third_party/backends/backend/ |
| D | pixma.conf.in | 8 # 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/openssl/doc/man3/ |
| D | SSL_CTX_set_timeout.pod | 5 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/curl/docs/libcurl/ |
| D | curl_multi_timeout.md | 25 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/musl/libc-test/src/functionalext/supplement/select/ |
| D | pselect.c | 61 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 …]
|
| D | select.c | 39 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 …]
|
| /third_party/nghttp2/ |
| D | gennghttpxfun.py | 23 "frontend-http2-read-timeout", 24 "frontend-read-timeout", 25 "frontend-write-timeout", 26 "backend-read-timeout", 27 "backend-write-timeout", 28 "stream-read-timeout", 29 "stream-write-timeout", 35 "backend-keep-alive-timeout", 81 "listener-disable-timeout", 105 "tls-dyn-rec-idle-timeout", [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/dataset/engine/ |
| D | queue.py | 81 def put_until(self, data, timeout=None, exit_signal=None): argument 82 """Put data into the queue. Block until timeout is reached or exit_signal is set.""" 85 self.put(data, timeout=timeout) 94 def put(self, data, timeout=None): argument 96 super().put(data, timeout=timeout) 144 super().put(name_list, timeout=timeout) 151 def get_until(self, timeout=None, exit_signal=None): argument 152 """Get data from the queue. Block until timeout is reached or exit_signal is set.""" 155 r = self.get(timeout=timeout) 170 def get(self, timeout=None): argument [all …]
|
| /third_party/musl/libc-test/src/functionalext/supplement/linux/ |
| D | ppoll.c | 35 struct timespec timeout; in ppoll_0100() local 36 timeout.tv_sec = 5; in ppoll_0100() 37 timeout.tv_nsec = 0; in ppoll_0100() 39 int ret = ppoll(pollfds, 1, &timeout, NULL); in ppoll_0100() 52 * @tc.desc : Listen to non-specified file time (timeout returns) 58 struct timespec timeout; in ppoll_0200() local 59 timeout.tv_sec = 3; in ppoll_0200() 60 timeout.tv_nsec = 0; in ppoll_0200() 62 int ret = ppoll(pollfds, 1, &timeout, NULL); in ppoll_0200() 73 struct timespec timeout; in ppoll_0300() local [all …]
|
| /third_party/musl/libc-test/src/functionalext/supplement/thread/ |
| D | mtx_timedlock.c | 27 * @tc.desc : Provide correct parameters, test timeout and lock 32 struct timespec timeout; in mtx_timedlock_0100() local 33 timeout.tv_sec = TWO; in mtx_timedlock_0100() 34 timeout.tv_nsec = 0; in mtx_timedlock_0100() 42 ret = mtx_timedlock(&mutex, &timeout); in mtx_timedlock_0100() 60 struct timespec timeout; in mtx_timedlock_0200() local 61 timeout.tv_sec = TWO; in mtx_timedlock_0200() 62 timeout.tv_nsec = 0; in mtx_timedlock_0200() 74 ret = mtx_timedlock(&mutex, &timeout); in mtx_timedlock_0200() 86 * @tc.desc : Provide correct parameters, test timeout and lock [all …]
|