Home
last modified time | relevance | path

Searched refs:ThreadLocalRandom (Results 1 – 5 of 5) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java11 import java.util.concurrent.ThreadLocalRandom;
40 ThreadLocalRandom.current().setSeed(17); in testSetSeed()
49 int f = ThreadLocalRandom.current().nextInt(); in testNextInt()
51 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()
60 long f = ThreadLocalRandom.current().nextLong();
62 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
71 boolean f = ThreadLocalRandom.current().nextBoolean();
73 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
82 float f = ThreadLocalRandom.current().nextFloat();
84 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
[all …]
DRecursiveActionTest.java17 import java.util.concurrent.ThreadLocalRandom;
1228 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testSortTaskDemo()
/libcore/luni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java35 public class ThreadLocalRandom extends Random { class
62 private static final ThreadLocal<ThreadLocalRandom> localRandom =
63 new ThreadLocal<ThreadLocalRandom>() {
64 protected ThreadLocalRandom initialValue() {
65 return new ThreadLocalRandom();
73 ThreadLocalRandom() { in ThreadLocalRandom() method in ThreadLocalRandom
83 public static ThreadLocalRandom current() { in current()
DLinkedTransferQueue.java672 ThreadLocalRandom randomYields = null; // bound if needed in awaitMatch()
689 randomYields = ThreadLocalRandom.current(); in awaitMatch()
DForkJoinPool.java21 import java.util.concurrent.ThreadLocalRandom;
1256 if (ThreadLocalRandom.current().nextInt() >= 0) in acquirePlock()
2053 int r = ThreadLocalRandom.current().nextInt(); in findNonEmptyStealQueue()