Home
last modified time | relevance | path

Searched refs:cycles (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java787 int cycles; field in ArrayBlockingQueue.Itrs
878 cycles++; in takeIndexWrapped()
1032 prevCycles = itrs.cycles; in Itr()
1079 final int cycles = itrs.cycles; in incorporateDequeues() local
1084 if (cycles != prevCycles || takeIndex != prevTakeIndex) { in incorporateDequeues()
1088 long dequeues = (cycles - prevCycles) * len in incorporateDequeues()
1102 this.prevCycles = cycles; in incorporateDequeues()
1272 len * (itrs.cycles - this.prevCycles in removedAt()
1323 if (itrs.cycles - prevCycles > 1) { in takeIndexWrapped()
/libcore/jsr166-tests/src/test/java/jsr166/
DScheduledExecutorSubclassTest.java219 final int cycles = 8; in testFixedRateSequence() local
220 final CountDownLatch done = new CountDownLatch(cycles); in testFixedRateSequence()
225 final int totalDelayMillis = (cycles - 1) * delay; in testFixedRateSequence()
230 if (elapsedMillis <= cycles * delay) in testFixedRateSequence()
250 final int cycles = 8; in testFixedDelaySequence() local
251 final CountDownLatch done = new CountDownLatch(cycles); in testFixedDelaySequence()
258 if (done.getCount() == cycles) { // first execution in testFixedDelaySequence()
271 final int totalDelayMillis = (cycles - 1) * delay; in testFixedDelaySequence()
272 await(done, totalDelayMillis + cycles * LONG_DELAY_MS); in testFixedDelaySequence()
DScheduledExecutorTest.java163 final int cycles = 8; in testFixedRateSequence() local
164 final CountDownLatch done = new CountDownLatch(cycles); in testFixedRateSequence()
169 final int totalDelayMillis = (cycles - 1) * delay; in testFixedRateSequence()
174 if (elapsedMillis <= cycles * delay) in testFixedRateSequence()
194 final int cycles = 8; in testFixedDelaySequence() local
195 final CountDownLatch done = new CountDownLatch(cycles); in testFixedDelaySequence()
202 if (done.getCount() == cycles) { // first execution in testFixedDelaySequence()
215 final int totalDelayMillis = (cycles - 1) * delay; in testFixedDelaySequence()
216 await(done, totalDelayMillis + cycles * LONG_DELAY_MS); in testFixedDelaySequence()
/libcore/benchmarks/src/benchmarks/regression/
DR.java1502 public static final int cycles = 0; field in R