Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DThreadGroup.java72 int nthreads; field in ThreadGroup
362 result = nthreads; in activeCount()
448 int nt = nthreads; in enumerate()
654 for (int i = 0 ; i < nthreads ; i++) { in interrupt()
710 for (int i = 0 ; i < nthreads ; i++) { in stopOrSuspend()
758 for (int i = 0 ; i < nthreads ; i++) { in resume()
793 if (destroyed || (nthreads > 0)) { in destroy()
806 nthreads = 0; in destroy()
861 if (nthreads == 0) { in remove()
864 if (daemon && (nthreads == 0) && in remove()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DDoubleAdderTest.java161 final int nthreads = 4; in testAddAndSumMT() local
164 CyclicBarrier barrier = new CyclicBarrier(nthreads + 1); in testAddAndSumMT()
165 for (int i = 0; i < nthreads; ++i) in testAddAndSumMT()
169 double total = (long)nthreads * incs; in testAddAndSumMT()
DLongAdderTest.java184 final int nthreads = 4; in testAddAndSumMT() local
187 CyclicBarrier barrier = new CyclicBarrier(nthreads + 1); in testAddAndSumMT()
188 for (int i = 0; i < nthreads; ++i) in testAddAndSumMT()
192 long total = (long)nthreads * incs; in testAddAndSumMT()
DLongAccumulatorTest.java149 final int nthreads = 4; in testAccumulateAndGetMT() local
152 Phaser phaser = new Phaser(nthreads + 1); in testAccumulateAndGetMT()
153 for (int i = 0; i < nthreads; ++i) in testAccumulateAndGetMT()
DDoubleAccumulatorTest.java149 final int nthreads = 4; in testAccumulateAndGetMT() local
152 Phaser phaser = new Phaser(nthreads + 1); in testAccumulateAndGetMT()
153 for (int i = 0; i < nthreads; ++i) in testAccumulateAndGetMT()
/libcore/jsr166-tests/src/test/java/jsr166/
DDoubleAdderTest.java138 final int nthreads = 4; in testAddAndSumMT() local
141 CyclicBarrier barrier = new CyclicBarrier(nthreads + 1); in testAddAndSumMT()
142 for (int i = 0; i < nthreads; ++i) in testAddAndSumMT()
146 double total = (long)nthreads * incs; in testAddAndSumMT()
DLongAdderTest.java161 final int nthreads = 4; in testAddAndSumMT() local
164 CyclicBarrier barrier = new CyclicBarrier(nthreads + 1); in testAddAndSumMT()
165 for (int i = 0; i < nthreads; ++i) in testAddAndSumMT()
169 long total = (long)nthreads * incs; in testAddAndSumMT()
DDoubleAccumulatorTest.java126 final int nthreads = 4; in testAccumulateAndGetMT() local
129 Phaser phaser = new Phaser(nthreads + 1); in testAccumulateAndGetMT()
130 for (int i = 0; i < nthreads; ++i) in testAccumulateAndGetMT()
DLongAccumulatorTest.java126 final int nthreads = 4; in testAccumulateAndGetMT() local
129 Phaser phaser = new Phaser(nthreads + 1); in testAccumulateAndGetMT()
130 for (int i = 0; i < nthreads; ++i) in testAccumulateAndGetMT()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThreadGroup.java225 int nthreads; field in ThreadGroup