| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
| ThreadTest.java | 28 private ArrayList<Worker> threads = new ArrayList<Worker>(); field in class:ThreadTest 40 threads.add(thread); 44 for (Worker thread: threads) { 51 errln("Threads gave differing results."); 83 ArrayList<Thread> threads = new ArrayList<Thread>(); local 85 threads.add(new Thread() { 92 for (Thread th:threads) { 95 for (Thread th:threads) {
|
| /external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
| ThreadTest.java | 25 private ArrayList<Worker> threads = new ArrayList<Worker>(); field in class:ThreadTest 37 threads.add(thread); 41 for (Worker thread: threads) { 48 errln("Threads gave differing results."); 80 ArrayList<Thread> threads = new ArrayList<Thread>(); local 82 threads.add(new Thread() { 89 for (Thread th:threads) { 92 for (Thread th:threads) {
|
| /external/mockito/src/test/java/org/concurrentmockito/ |
| ThreadsRunAllTestsHalfManualTest.java | 152 List<AllTestsRunner> threads = new LinkedList<AllTestsRunner>(); local 154 threads.add(new AllTestsRunner()); 157 for (Thread t : threads) { 162 for (AllTestsRunner t : threads) { 176 System.out.println("Finished tests in " + numberOfThreads + " threads in " + executionTime + " seconds. (" + failed.size() + " tests failed)");
|
| /libcore/ojluni/src/main/java/sun/nio/ch/ |
| SimpleAsynchronousFileChannelImpl.java | 53 // Thread-safe set of IDs of native threads, for signalling 54 private final NativeThreadSet threads = new NativeThreadSet(2); field in class:SimpleAsynchronousFileChannelImpl 90 // signal any threads blocked on this channel 91 threads.signalAndWait(); 107 int ti = threads.add(); 120 threads.remove(ti); 130 int ti = threads.add(); 150 threads.remove(ti); 156 int ti = threads.add(); 168 threads.remove(ti) [all...] |
| /art/test/129-ThreadGetId/src/ |
| Main.java | 25 final Thread[] threads = new Thread[numberOfThreads]; local 26 for (int t = 0; t < threads.length; t++) { 27 threads[t] = new Thread(new Main()); 28 threads[t].start(); 30 for (Thread t : threads) { 64 // Check all the current threads for positive IDs. 80 // Check all the current threads for positive IDs.
|
| /art/test/145-alloc-tracking-stress/src/ |
| Main.java | 44 final Thread[] threads = new Thread[numberOfThreads]; local 45 for (int t = 0; t < threads.length; t++) { 46 threads[t] = new Thread(new Main(t)); 47 threads[t].start(); 49 for (Thread t : threads) {
|
| /art/test/1944-sudden-exit/src/art/ |
| Test1944.java | 52 Thread[] threads = new Thread[num_threads]; local 54 threads[i] = new Thread(() -> { fib(started); }); 56 threads[i].setDaemon(i % 2 == 0); 57 threads[i].start(); 59 // Wait for all threads to start. 61 System.out.println("All threads started");
|
| /art/test/597-deopt-busy-loop/src/ |
| Main.java | 35 final Thread[] threads = new Thread[numberOfThreads]; local 36 for (int t = 0; t < threads.length; t++) { 37 threads[t] = new Thread(new Main(t)); 38 threads[t].start(); 40 for (Thread t : threads) {
|
| /art/test/597-deopt-new-string/src/ |
| Main.java | 34 final Thread[] threads = new Thread[numberOfThreads]; local 35 for (int t = 0; t < threads.length; t++) { 36 threads[t] = new Thread(new Main(t)); 37 threads[t].start(); 39 for (Thread t : threads) { 61 // This thread keeps doing deoptimization of all threads. 63 // StringFactory.newEmptyString() in one of the other threads.
|
| /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/ |
| NameTest.java | 60 int threads = reply.getNextValueAsInt(); local 61 for (int i = 0 ;i < threads; i++) {
|
| ThreadGroupTest.java | 51 * debuggee threads by VirtualMachine.AllThreads command and looks for tested thread. 62 logWriter.println("get all threads"); 64 int threads = reply.getNextValueAsInt(); local 65 logWriter.println("exercise threads = " + threads); 71 for (int i = 0; i < threads; i++) {
|
| /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/ |
| Resume002Debuggee.java | 30 // The method used to suspend threads on breakpoint. 59 // Create tested threads. 60 Thread[] threads = new Thread[THREAD_COUNT]; local 61 for (int i = 0; i < threads.length; ++i) { 62 threads[i] = new ResumeThread(i); 65 // Start threads. 66 logWriter.println("Starting threads"); 67 for (Thread t : threads) { 71 // Wait for all tested threads to finish. 72 logWriter.println("Waiting end of threads"); [all...] |
| SuspendTest.java | 50 * and checks with help of ThreadReference.Status command that all threads in debuggee 52 * debuggee threads are suspended. 71 int threads = reply.getNextValueAsInt(); local 72 logWriter.println("Number of threads = " + threads); 73 assertTrue("Invalid number of threads: " + threads, threads > 0); 75 for (int i = 0; i < threads; i++) {
|
| /external/autotest/client/tests/monotonic_time/src/ |
| threads.c | 14 #include "threads.h" 26 static thread_t threads[MAX_THREADS]; variable 48 * Create a set of threads each of which is bound to one of 50 * Returns the number of threads created. 64 thread = &threads[num_threads++]; 83 * Create nthreads threads. 84 * Returns the number of threads created. 95 thread = &threads[num_threads++]; 113 * Join with the set of previsouly created threads. 118 pthread_join(threads[--num_threads].thread, NULL) [all...] |
| /external/chromium-trace/catapult/systrace/atrace_helper/jni/ |
| process_info.h | 23 std::map<int, ThreadInfo> threads; member in struct:ProcessInfo
|
| /external/compiler-rt/lib/tsan/tests/rtl/ |
| tsan_mutex.cc | 192 // Create reader threads. 193 pthread_t threads[kThreadCount]; local 195 pthread_create(&threads[t], 0, singleton_thread, &singleton); 197 pthread_join(threads[t], 0);
|
| /external/eigen/demos/mandelbrot/ |
| mandelbrot.h | 45 MandelbrotThread **threads; member in class:MandelbrotWidget 60 threads = new MandelbrotThread*[threadcount]; 61 for(int th = 0; th < threadcount; th++) threads[th] = new MandelbrotThread(this, th); 66 for(int th = 0; th < threadcount; th++) delete threads[th]; 67 delete[] threads;
|
| /external/gemmlowp/test/ |
| test_blocking_counter.cc | 69 std::vector<Thread*> threads; local 72 threads.push_back(new Thread(blocking_counter, num_decrements_per_thread)); 78 if (threads[i]->Join()) { 81 delete threads[i];
|
| /external/google-benchmark/src/ |
| benchmark_api_internal.h | 33 int threads; // Number of concurrent threads to us member in struct:benchmark::internal::Benchmark::Instance
|
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
| UCharacterThreadTest.java | 48 List threads = new LinkedList(); local 54 threads.add(thread); 56 ListIterator i = threads.listIterator();
|
| /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
| UCharacterThreadTest.java | 45 List threads = new LinkedList(); local 51 threads.add(thread); 53 ListIterator i = threads.listIterator();
|
| /external/libchrome/base/threading/ |
| thread_local_storage_unittest.cc | 100 // threads that set the TLS, while the destructor cleans it up. 101 // After the threads finish, verify that the value is cleaned up. 105 DelegateSimpleThread* threads[kNumThreads]; local 109 // Spawn the threads. 113 threads[index] = new DelegateSimpleThread(thread_delegates[index], 115 threads[index]->Start(); 118 // Wait for the threads to finish. 120 threads[index]->Join(); 121 delete threads[index]; 127 tls_slot.Free(); // Stop doing callbacks to cleanup threads [all...] |
| /external/libcxx/utils/google-benchmark/src/ |
| benchmark_api_internal.h | 33 int threads; // Number of concurrent threads to us member in struct:benchmark::internal::Benchmark::Instance
|
| /external/linux-kselftest/tools/testing/selftests/powerpc/dscr/ |
| dscr_default_test.c | 5 * it's sysfs interface and then verifies that all threads 19 static unsigned long result[THREADS]; 65 pthread_t threads[THREADS]; local 66 unsigned long i, *status[THREADS]; 75 /* Spawn all testing threads */ 76 for (i = 0; i < THREADS; i++) { 77 if (pthread_create(&threads[i], NULL, do_test, (void *)i)) { 105 for (i = 0; i < THREADS; i++) { 106 if (pthread_join(threads[i], (void **)&(status[i]))) [all...] |
| /external/linux-kselftest/tools/testing/selftests/powerpc/math/ |
| fpu_signal.c | 30 * worker threads 81 int i, j, rc, threads; local 85 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; 86 tids = malloc(threads * sizeof(pthread_t)); 90 threads_starting = threads; 91 for (i = 0; i < threads; i++) { 102 printf("\tSending signals to all threads %d times...", ITERATIONS); 104 for (j = 0; j < threads; j++) { 113 for (i = 0; i < threads; i++) {
|