HomeSort by relevance Sort by last modified time
    Searched refs:phaser (Results 1 - 2 of 2) sorted by null

  /libcore/jsr166-tests/src/test/java/jsr166/
PhaserTest.java 13 import java.util.concurrent.Phaser;
25 /** Checks state of unterminated phaser. */
26 protected void assertState(Phaser phaser,
28 assertEquals(phase, phaser.getPhase());
29 assertEquals(parties, phaser.getRegisteredParties());
30 assertEquals(unarrived, phaser.getUnarrivedParties());
31 assertEquals(parties - unarrived, phaser.getArrivedParties());
32 assertFalse(phaser.isTerminated());
35 /** Checks state of terminated phaser. *
55 Phaser phaser = new Phaser(); local
128 Phaser phaser = new Phaser(); local
138 Phaser phaser = new Phaser(0); local
166 Phaser phaser = new Phaser(); local
178 Phaser phaser = new Phaser(1); local
228 Phaser phaser = new Phaser(); local
258 final Phaser phaser = new Phaser(size); local
270 Phaser phaser = new Phaser(1); local
280 final Phaser phaser = new Phaser(1); local
296 final Phaser phaser = new Phaser(); local
318 Phaser phaser = new Phaser(1); local
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
Phaser.java 21 * number of parties <em>registered</em> to synchronize on a phaser
34 * Phaser} may be repeatedly awaited. Method {@link
37 * generation of a phaser has an associated phase number. The phase
39 * phaser, wrapping around to zero after reaching {@code
41 * control of actions upon arrival at a phaser and upon awaiting
50 * number</em>; that is, the phase number of the phaser to which
62 * the phaser advances to (or is already at) a different phase.
68 * state of the phaser. If necessary, you can perform any
77 * <p><b>Termination.</b> A phaser may enter a <em>termination</em>
102 * Whenever the number of registered parties of a child phaser become
1061 final Phaser phaser; field in class:Phaser.QNode
    [all...]

Completed in 63 milliseconds