Searched defs:phase (Results 1 - 2 of 2) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
H A DPhaserTest.java38 int phase, int parties, int unarrived) {
39 assertEquals(phase, phaser.getPhase());
63 * parties and initial phase number of 0
173 * register() correctly returns the current barrier phase number
185 * register causes the next arrive to not increment the phase
186 * rather retain the phase number
265 * the phase number increments correctly when tripping the barrier
271 int phase = phaser.arrive();
272 assertTrue(index % size == 0 ? (index / size) == phase : index - (phase * siz
37 assertState(Phaser phaser, int phase, int parties, int unarrived) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DPhaser.java35 * generation of a phaser has an associated phase number. The phase
38 * Integer.MAX_VALUE}. The use of phase numbers enables independent
47 * do not block, but return an associated <em>arrival phase
48 * number</em>; that is, the phase number of the phaser to which
49 * the arrival applied. When the final party for a given phase
50 * arrives, an optional action is performed and the phase
52 * triggering a phase advance, and are arranged by overriding
59 * argument indicating an arrival phase number, and returns when
60 * the phaser advances to (or is already at) a different phase
322 queueFor(int phase) argument
690 awaitAdvance(int phase) argument
716 awaitAdvanceInterruptibly(int phase) argument
752 awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) argument
907 onAdvance(int phase, int registeredParties) argument
939 releaseWaiters(int phase) argument
962 abortWait(int phase) argument
1002 internalAwaitAdvance(int phase, QNode node) argument
1057 final int phase; field in class:Phaser.QNode
1066 QNode(Phaser phaser, int phase, boolean interruptible, boolean timed, long nanos) argument
[all...]

Completed in 4 milliseconds