Home
last modified time | relevance | path

Searched refs:phase (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DPhaser.java351 private AtomicReference<QNode> queueFor(int phase) { in queueFor() argument
352 return ((phase & 1) == 0) ? evenQ : oddQ; in queueFor()
384 int phase = (int)(s >>> PHASE_SHIFT); in doArrive() local
385 if (phase < 0) in doArrive()
386 return phase; in doArrive()
396 if (onAdvance(phase, nextUnarrived)) in doArrive()
402 int nextPhase = (phase + 1) & MAX_PHASE; in doArrive()
405 releaseWaiters(phase); in doArrive()
408 phase = parent.doArrive(ONE_DEREGISTER); in doArrive()
412 phase = parent.doArrive(ONE_ARRIVAL); in doArrive()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DPhaserTest.java62 int phase, int parties, int unarrived) { in assertState() argument
63 assertEquals(phase, phaser.getPhase()); in assertState()
295 int phase = phaser.arrive(); in testPhaseIncrement1() local
296 … assertTrue(index % size == 0 ? (index / size) == phase : index - (phase * size) > 0); in testPhaseIncrement1()
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java38 int phase, int parties, int unarrived) { in assertState() argument
39 assertEquals(phase, phaser.getPhase()); in assertState()
271 int phase = phaser.arrive(); in testPhaseIncrement1() local
272 … assertTrue(index % size == 0 ? (index / size) == phase : index - (phase * size) > 0); in testPhaseIncrement1()