Home
last modified time | relevance | path

Searched refs:parties (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DCyclicBarrier.java161 private final int parties; field in CyclicBarrier
182 count = parties; in nextGeneration()
192 count = parties; in breakBarrier()
278 public CyclicBarrier(int parties, Runnable barrierAction) { in CyclicBarrier() argument
279 if (parties <= 0) throw new IllegalArgumentException(); in CyclicBarrier()
280 this.parties = parties; in CyclicBarrier()
281 this.count = parties; in CyclicBarrier()
294 public CyclicBarrier(int parties) { in CyclicBarrier() argument
295 this(parties, null); in CyclicBarrier()
304 return parties; in getParties()
[all …]
DPhaser.java433 int parties = counts >>> PARTIES_SHIFT; in doRegister() local
435 if (registrations > MAX_PARTIES - parties) in doRegister()
523 public Phaser(int parties) { in Phaser() argument
524 this(null, parties); in Phaser()
548 public Phaser(Phaser parent, int parties) { in Phaser() argument
549 if (parties >>> PARTIES_SHIFT != 0) in Phaser()
558 if (parties != 0) in Phaser()
566 this.state = (parties == 0) ? (long)EMPTY : in Phaser()
568 ((long)parties << PARTIES_SHIFT) | in Phaser()
569 ((long)parties); in Phaser()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java38 int phase, int parties, int unarrived) { in assertState() argument
40 assertEquals(parties, phaser.getRegisteredParties()); in assertState()
42 assertEquals(parties - unarrived, phaser.getArrivedParties()); in assertState()
47 protected void assertTerminated(Phaser phaser, int maxPhase, int parties) { in assertTerminated() argument
51 assertEquals(parties, phaser.getRegisteredParties()); in assertTerminated()
DJSR166TestCase.java1755 public CheckedBarrier(int parties) { super(parties); }
/libcore/
DLICENSE96 licensed as a whole at no charge to all third parties under the terms of
161 third parties are not compelled to copy the source along with the object code.
166 your rights under this License. However, parties who have received copies, or
168 long as such parties remain in full compliance.
183 third parties to this License.
/libcore/ojluni/
DNOTICE382 licensed as a whole at no charge to all third parties under the terms of
447 third parties are not compelled to copy the source along with the object code.
452 your rights under this License. However, parties who have received copies, or
454 long as such parties remain in full compliance.
469 third parties to this License.