/openjdk7/jdk/test/javax/management/remote/mandatory/connection/ |
H A D | ConnectionTest.java | 141 // this was originally timeout 1ms, which was not enough 328 private static Notification waitForNotification(long timeout) argument 332 long remainingTime = timeout; 337 remainingTime = timeout - (System.currentTimeMillis() - startTime);
|
H A D | MultiThreadDeadLockTest.java | 49 print("Specify a server idle timeout to make a server close an idle connection."); 50 env.put("jmx.remote.x.server.connection.timeout", serverTimeout); 55 env.put("jmx.remote.x.notification.fetch.timeout", serverTimeout); 85 print("Sleep 3 times of server idle timeout: "+serverTimeout+ 143 public boolean waitDone(long timeout) { argument 147 UserThread.class.wait(timeout);
|
/openjdk7/jdk/src/share/classes/javax/smartcardio/ |
H A D | TerminalFactory.java | 161 public boolean waitForChange(long timeout) throws CardException { argument
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | ArrayBlockingQueue.java | 339 public boolean offer(E e, long timeout, TimeUnit unit) argument 343 long nanos = unit.toNanos(timeout); 381 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument 382 long nanos = unit.toNanos(timeout);
|
H A D | LinkedBlockingQueue.java | 371 public boolean offer(E e, long timeout, TimeUnit unit) argument 375 long nanos = unit.toNanos(timeout); 456 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument 459 long nanos = unit.toNanos(timeout);
|
H A D | Exchanger.java | 262 * interruption, timeout, or elapsed spin-waits. This value is 549 * only upon return from timeout while waiting in slot 0. When a 665 * @param timeout the maximum time to wait 666 * @param unit the time unit of the <tt>timeout</tt> argument 673 public V exchange(V x, long timeout, TimeUnit unit) argument 677 true, unit.toNanos(timeout));
|
H A D | FutureTask.java | 194 public V get(long timeout, TimeUnit unit) argument 200 (s = awaitDone(true, unit.toNanos(timeout))) <= COMPLETING) 386 * Awaits completion or aborts on interrupt or timeout.
|
H A D | LinkedTransferQueue.java | 276 * timeout). The relative complexity of using one monolithic 402 * empirically to balance these under various timeout scenarios. 600 * @param nanos timeout in nanosecs, used only if mode is TIMED 693 * @param timed if true, wait only until timeout elapses 694 * @param nanos timeout in nanosecs, used only if timed is true 695 * @return matched item, or e if unmatched on interrupt or timeout 1051 public boolean offer(E e, long timeout, TimeUnit unit) { argument 1115 * before the timeout elapses. 1127 public boolean tryTransfer(E e, long timeout, TimeUnit unit) argument 1129 if (xfer(e, true, TIMED, unit.toNanos(timeout)) 1144 poll(long timeout, TimeUnit unit) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/ |
H A D | ReentrantReadWriteLock.java | 822 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... } 864 * @param timeout the time to wait for the read lock 865 * @param unit the time unit of the timeout argument 871 public boolean tryLock(long timeout, TimeUnit unit) argument 873 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); 1052 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... } 1101 * @param timeout the time to wait for the write lock 1102 * @param unit the time unit of the timeout argument 1113 public boolean tryLock(long timeout, TimeUnit unit) argument 1115 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); [all...] |
/openjdk7/jdk/src/windows/classes/java/net/ |
H A D | TwoStacksPlainSocketImpl.java | 221 native void socketConnect(InetAddress address, int port, int timeout) argument
|
/openjdk7/jdk/src/share/classes/sun/security/smartcardio/ |
H A D | PCSC.java | 82 (long contextId, long timeout, int[] currentState, String[] readerNames) 81 SCardGetStatusChange(long contextId, long timeout, int[] currentState, String[] readerNames) argument
|
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/ |
H A D | MToolkit.java | 739 protected boolean syncNativeQueue(final long timeout) { argument 749 awtLockWait(timeout); 755 if (((System.currentTimeMillis() - start) > timeout) && (timeout >= 0)) {
|
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/ |
H A D | SolarisEventPort.java | 248 static native int port_getn(int port, long address, int max, long timeout) argument
|
/openjdk7/jdk/src/share/classes/sun/net/ftp/impl/ |
H A D | FtpClient.java | 848 * Sets the timeout value to use when connecting to the server, 850 * @param timeout the timeout value, in milliseconds, to use for the connect 851 * operation. A value of zero or less, means use the default timeout. 855 public sun.net.ftp.FtpClient setConnectTimeout(int timeout) { argument 856 connectTimeout = timeout; 861 * Returns the current connection timeout value. 863 * @return the value, in milliseconds, of the current connect timeout. 871 * Sets the timeout value to use when reading from the server, 873 * @param timeout th 877 setReadTimeout(int timeout) argument 914 tryConnect(InetSocketAddress dest, int timeout) argument 928 doConnect(InetSocketAddress dest, int timeout) argument 1008 connect(SocketAddress dest, int timeout) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | SwingWorker.java | 610 public final T get(long timeout, TimeUnit unit) throws InterruptedException, argument 612 return future.get(timeout, unit);
|
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | ServerSocket.java | 480 * @exception SocketTimeoutException if a timeout was previously set with setSoTimeout and 481 * the timeout has been reached. 619 * Enable/disable SO_TIMEOUT with the specified timeout, in 620 * milliseconds. With this option set to a non-zero timeout, 622 * will block for only this amount of time. If the timeout expires, 626 * timeout must be > 0. 627 * A timeout of zero is interpreted as an infinite timeout. 628 * @param timeout the specified timeout, i 634 setSoTimeout(int timeout) argument [all...] |
H A D | InetAddress.java | 415 * The timeout value, in milliseconds, indicates the maximum amount of time 420 * @param timeout the time, in milliseconds, before the call aborts 423 * @throws IllegalArgumentException if <code>timeout</code> is negative. 426 public boolean isReachable(int timeout) throws IOException { argument 427 return isReachable(null, 0 , timeout); 445 * The timeout value, in milliseconds, indicates the maximum amount of time 454 * @param timeout the time, in milliseconds, before the call aborts 455 * @throws IllegalArgumentException if either <code>timeout</code> 462 int timeout) throws IOException { 465 if (timeout < 461 isReachable(NetworkInterface netif, int ttl, int timeout) argument [all...] |
/openjdk7/hotspot/src/share/vm/runtime/ |
H A D | mutexLocker.hpp | 255 long timeout = 0, 258 return _monitor->wait(no_safepoint_check, timeout, as_suspend_equivalent);
|
/openjdk7/jdk/src/solaris/native/sun/xawt/ |
H A D | XToolkit.c | 400 // AWT static poll timeout. Zero means "not set", aging algorithm is 401 // used. Static poll timeout values higher than 50 cause application 403 // enough. Static poll timeout value less than 10 are usually 407 // is highly recomended to use aging algorithm (set static poll timeout 452 * Reads environment variables to initialize timeout fields. 562 * Gets the best timeout for the next call to poll(). 565 * timeout task needs to be run, in millis(of currentTimeMillis) 570 uint32_t timeout; local 575 timeout = curPollTimeout; 582 PRINT2("to: %d, ft: %d, to: %d, tt: %d, mil: %d\n", taskTimeout, flushTimeout, timeout, (in 657 uint32_t timeout = get_poll_timeout(nextTaskTime); local [all...] |
/openjdk7/jdk/test/java/awt/KeyboardFocusmanager/TypeAhead/ |
H A D | TestDialogTypeAhead.java | 263 public synchronized void doWait(int timeout) throws InterruptedException { argument 268 wait(timeout);
|
/openjdk7/jdk/test/java/lang/management/ManagementFactory/ |
H A D | ThreadMXBeanProxy.java | 233 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { argument 234 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
|
/openjdk7/jdk/src/share/demo/jvmti/hprof/ |
H A D | hprof_io.h | 110 void io_write_monitor_sleep(jlong timeout, SerialNumber thread_serial_num); 111 void io_write_monitor_wait(char *sig, jlong timeout,
|
/openjdk7/jdk/src/share/demo/jvmti/waiters/ |
H A D | waiters.cpp | 214 jthread thread, jobject object, jlong timeout) 219 object, timeout); 213 monitor_wait(jvmtiEnv* jvmti, JNIEnv *env, jthread thread, jobject object, jlong timeout) argument
|
/openjdk7/jdk/test/java/util/concurrent/CountDownLatch/ |
H A D | Basic.java | 160 long[] timeout = { 0L, 5L, 10L }; 166 a[count] = test.awaiter(latch, gate, timeout[i]); a[count++].start();
|
/openjdk7/jdk/test/sun/misc/IoTrace/ |
H A D | IoTraceAgent.java | 64 int timeout, long bytesRead) { 67 l.socketReadEnd(context, address, port, timeout, bytesRead); 63 socketReadEnd(Object context, InetAddress address, int port, int timeout, long bytesRead) argument
|