HomeSort by relevance Sort by last modified time
    Searched defs:park (Results 1 - 16 of 16) sorted by null

  /libcore/luni/src/main/java/java/util/concurrent/locks/
LockSupport.java 18 * Semaphore} class). A call to {@code park} will return immediately
24 * <p>Methods {@code park} and {@code unpark} provide efficient
28 * between one thread invoking {@code park} and another thread trying
30 * permit. Additionally, {@code park} will return if the caller's
32 * {@code park} method may also return at any other time, for "no
34 * conditions upon return. In this sense {@code park} serves as an
39 * <p>The three forms of {@code park} each also support a
50 * useful for most concurrency control applications. The {@code park}
52 * <pre>while (!canProceed()) { ... LockSupport.park(this); }</pre>
54 * call to {@code park} entail locking or blocking. Because only on
154 public static void park(Object blocker) { method in class:LockSupport
281 public static void park() { method in class:LockSupport
    [all...]
AbstractQueuedLongSynchronizer.java 149 * blocked (via park), so the current node must
321 * rather than to use timed park. A rough estimate suffices
546 * to signal it, so it can safely park.
561 * need a signal, but don't park yet. Caller will need to
577 * Convenience method to park and then check if interrupted
582 LockSupport.park(this);
    [all...]
AbstractQueuedSynchronizer.java 380 * blocked (via park), so the current node must
552 * rather than to use timed park. A rough estimate suffices
777 * to signal it, so it can safely park.
792 * need a signal, but don't park yet. Caller will need to
    [all...]
  /dalvik/tests/067-preemptive-unpark/src/
Main.java 23 System.out.println("Asking thread to park");
95 UNSAFE.park(false, 500 * 1000000); // 500 msec
99 System.out.println("park()ed for " + elapsed + " msec");
102 System.out.println("park() returned quickly");
  /libcore/luni/src/main/java/sun/misc/
Unsafe.java 319 public void park(boolean absolute, long time) { method in class:Unsafe
  /libcore/luni/src/test/java/tests/api/org/apache/harmony/kernel/dalvik/
ThreadsTest.java 26 * Tests for the <code>park()</code> functionality of {@link Unsafe}.
51 /** Test the case where the park times out. */
85 /** Test the case where the park times out. */
147 * either case, this constructor takes a duration to park for
163 UNSAFE.park(true, start + amount);
165 UNSAFE.park(false, amount);
  /libcore/luni/src/main/java/java/util/concurrent/
SynchronousQueue.java 105 * Blocking is mainly accomplished using LockSupport park/unpark,
175 * rather than to use timed park. A rough estimate suffices.
204 volatile Thread waiter; // to control park/unpark
380 * to be at the head of the stack, calls to park are
417 s.waiter = w; // establish waiter so can park next iter
419 LockSupport.park(this);
493 volatile Thread waiter; // to control park/unpark
705 LockSupport.park(this);
    [all...]
  /prebuilt/sdk/10/
android.jar 
  /prebuilt/sdk/11/
android.jar 
  /prebuilt/sdk/13/
android.jar 
  /prebuilt/sdk/9/
android.jar 
  /prebuilt/sdk/4/
android.jar 
  /prebuilt/sdk/5/
android.jar 
  /prebuilt/sdk/6/
android.jar 
  /prebuilt/sdk/7/
android.jar 
  /prebuilt/sdk/8/
android.jar 

Completed in 104 milliseconds