/external/python/cpython2/Lib/ |
H A D | Queue.py | 107 def put(self, item, block=True, timeout=None): 110 If optional args 'block' is true and 'timeout' is None (the default), 111 block if necessary until a free slot is available. If 'timeout' is 112 a non-negative number, it blocks at most 'timeout' seconds and raises 115 is immediately available, else raise the Full exception ('timeout' 124 elif timeout is None: 127 elif timeout < 0: 128 raise ValueError("'timeout' must be a non-negative number") 130 endtime = _time() + timeout 150 def get(self, block=True, timeout [all...] |
/external/sl4a/Utils/src/com/googlecode/android_scripting/future/ |
H A D | FutureResult.java | 49 public T get(long timeout, TimeUnit unit) throws InterruptedException { argument 50 mLatch.await(timeout, unit);
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
H A D | Fence.h | 50 GLenum clientWait(GLbitfield flags, GLuint64 timeout); 51 void serverWait(GLbitfield flags, GLuint64 timeout);
|
/external/apache-http/src/org/apache/http/ |
H A D | HttpClientConnection.java | 58 * implementations may completely ignore the timeout parameter. 60 * @param timeout the maximum time in milliseconds to wait for data 62 * even after waiting for <code>timeout</code> milliseconds. 65 boolean isResponseAvailable(int timeout) argument
|
/external/apache-http/src/org/apache/http/io/ |
H A D | SessionInputBuffer.java | 64 boolean isDataAvailable(int timeout) throws IOException; argument
|
/external/autotest/client/site_tests/platform_CUPSDaemon/ |
H A D | platform_CUPSDaemon.py | 30 # Try a simple CUPS command; timeout/fail if it takes too long (i.e., 32 utils.system_output('lpstat -W all', timeout=10) 35 def wait_for_path_exists(self, path, timeout=5): 37 Wait for a path to exist, with timeout. 40 @param timeout: time to wait, in seconds 44 while timeout > 0: 49 timeout -= 1
|
/external/autotest/site_utils/rpm_control_system/ |
H A D | rpm_client.py | 36 timeout = None 39 timeout, result = retry.timeout(client.queue_request, 47 if timeout:
|
/external/curl/tests/libtest/ |
H A D | lib1502.c | 86 struct timeval timeout; local 95 timeout.tv_sec = 1; 96 timeout.tv_usec = 0; 102 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/external/curl/tests/unit/ |
H A D | unit1303.c | 50 #define TIMEOUTS(x,y) data->set.timeout = x; data->set.connecttimeout = y 74 long timeout; variable 81 {BASE + 10, 0, 10000, 8000, FALSE, -1, "timeout is -1, expired"}, 87 {BASE + 8, 0, 10000, 8000, TRUE, -1, "timeout is -1, expired"}, 90 /* no connect timeout set, not connecting */ 93 {BASE + 10, 0, 10000, 0, FALSE, -1, "timeout is -1, expired"}, 96 /* no connect timeout set, connecting */ 99 {BASE + 10, 0, 10000, 0, FALSE, -1, "timeout is -1, expired"}, 102 /* only connect timeout set, not connecting */ 103 {BASE + 4, 0, 0, 10000, FALSE, 0, "no timeout activ [all...] |
/external/iptables/include/linux/netfilter/ |
H A D | xt_CT.h | 31 char timeout[32]; member in struct:xt_ct_target_info_v1
|
/external/junit/src/main/java/org/junit/ |
H A D | Test.java | 40 * The second optional parameter, <code>timeout</code>, causes a test to fail if it takes 43 * @Test(<b>timeout=100</b>) public void infinity() { 47 * <b>Warning</b>: while <code>timeout</code> is useful to catch and terminate 52 * @Test(<b>timeout=100</b>) public void sleep100() { 56 * <b>THREAD SAFETY WARNING:</b> Test methods with a timeout parameter are run in a thread other than the 58 * code that is not thread safe when compared to the same test method without a timeout parameter. 87 * Optionally specify <code>timeout</code> in milliseconds to cause a test method to fail if it 90 * <b>THREAD SAFETY WARNING:</b> Test methods with a timeout parameter are run in a thread other than the 92 * code that is not thread safe when compared to the same test method without a timeout parameter. 97 long timeout() defaul [all...] |
/external/libbrillo/brillo/message_loops/ |
H A D | message_loop_utils.h | 17 // or the timeout expires. 20 base::TimeDelta timeout,
|
/external/ltp/lib/ |
H A D | tst_checkpoint.c | 87 struct timespec timeout; local 94 timeout.tv_sec = msec_timeout/1000; 95 timeout.tv_nsec = (msec_timeout%1000) * 1000000; 98 tst_futexes[id], &timeout);
|
/external/ltp/testcases/network/tcp_cmds/ftp/ |
H A D | ftp02 | 51 set timeout 90 60 timeout {send_user \"\n$CONNECTION_FAILED\n\";exit 1}
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 2-1.c | 43 struct timespec timeout; local 59 timeout.tv_sec = curtime.tv_sec + TIMEOUT; 60 timeout.tv_nsec = curtime.tv_usec * 1000; 63 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
|
H A D | 2-2.c | 39 struct timespec timeout; local 59 timeout.tv_sec = curtime.tv_sec + TIMEOUT; 60 timeout.tv_nsec = curtime.tv_usec * 1000; 63 /* The condition variable will not be signaled until AFTER the timeout 66 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
|
H A D | 2-3.c | 38 struct timespec timeout; local 53 timeout.tv_sec = curtime.tv_sec; 54 timeout.tv_nsec = 0; 57 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
|
H A D | 3-1.c | 36 struct timespec timeout; local 52 timeout.tv_sec = curtime.tv_sec + TIMEOUT; 53 timeout.tv_nsec = curtime.tv_usec * 1000; 56 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/ |
H A D | 2-1.c | 11 * available. The wait will end when the specified timeout time has expired. 13 * The timeout expires when the absolute time 'abs_timeout' passes, or if 'abs_timeout' 39 #define TIMEOUT 3 /* 3 seconds of timeout time for 115 struct timespec timeout, ts; local 131 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; 132 timeout.tv_nsec = currsec1.tv_usec * 1000; 137 if (pthread_mutex_timedlock(&mutex, &timeout) != ETIMEDOUT) {
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/ |
H A D | helper.c | 25 * -> after a specified timeout, the monitor let the stress test terminate 63 int timeout; variable 67 when the timeout expires. As this is highly 74 unsigned remaining = timeout * 3600; 102 printf(" n is the timeout duration in hours,\n"); 109 timeout = atoi(argv[1]); 110 if (timeout < 1) { 112 "Invalid timeout value \"%s\". Timeout must be a positive integer.\n", 120 perror("Failed to create the timeout thread\n");
|
/external/mockito/src/test/java/org/mockito/verification/ |
H A D | NegativeDurationTest.java | 13 Mockito.timeout(-1); 14 Assert.fail("It is forbidden to invoke Mockito.timeout() with negative value.");
|
/external/syslinux/core/lwip/src/arch/ |
H A D | sys_arch.c | 47 u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) argument 53 rv = sem_down(*sem, timeout); 94 u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) argument 100 rv = mbox_fetch(*mbox, msg, timeout);
|
/external/toybox/toys/pending/ |
H A D | sulogin.c | 27 long timeout; 50 if(TT.timeout) { 52 alarm(TT.timeout); 56 if(TT.timeout) alarm(0);
|
/external/v8/src/runtime/ |
H A D | runtime-futex.cc | 26 CONVERT_DOUBLE_ARG_CHECKED(timeout, 3); 30 CHECK(timeout == V8_INFINITY || !std::isnan(timeout)); 40 return FutexEmulation::Wait(isolate, array_buffer, addr, value, timeout);
|
/external/v8/tools/testrunner/objects/ |
H A D | context.py | 30 def __init__(self, arch, mode, shell_dir, mode_flags, verbose, timeout, 39 self.timeout = timeout 54 return [self.arch, self.mode, self.mode_flags, self.timeout, self.isolates,
|