/external/linux-tools-perf/src/tools/perf/tests/ |
H A D | open-syscall.c | 11 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); local 13 if (threads == NULL) { 24 if (perf_evsel__open_per_thread(evsel, threads) < 0) { 49 perf_evsel__close_fd(evsel, 1, threads->nr); 53 thread_map__delete(threads);
|
H A D | keep-tracking.c | 63 struct thread_map *threads = NULL; local 70 threads = thread_map__new(-1, getpid(), UINT_MAX); 71 CHECK_NOT_NULL__(threads); 79 perf_evlist__set_maps(evlist, cpus, threads); 151 if (threads) 152 thread_map__delete(threads);
|
H A D | open-syscall-all-cpus.c | 14 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); local 16 if (threads == NULL) { 35 if (perf_evsel__open(evsel, cpus, threads) < 0) { 103 perf_evsel__close_fd(evsel, 1, threads->nr); 107 thread_map__delete(threads);
|
H A D | mmap-basic.c | 22 struct thread_map *threads; local 35 threads = thread_map__new(-1, getpid(), UINT_MAX); 36 if (threads == NULL) { 62 perf_evlist__set_maps(evlist, cpus, threads); 79 if (perf_evsel__open(evsels[i], cpus, threads) < 0) { 143 perf_evsel__close_fd(evsels[i], 1, threads->nr); 149 thread_map__delete(threads);
|
/external/linux-tools-perf/src/tools/perf/util/ |
H A D | thread_map.h | 20 void thread_map__delete(struct thread_map *threads); 22 size_t thread_map__fprintf(struct thread_map *threads, FILE *fp); 24 static inline int thread_map__nr(struct thread_map *threads) argument 26 return threads ? threads->nr : 1;
|
H A D | values.h | 7 int threads; member in struct:perf_read_values
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
H A D | tsan_thread.cc | 50 pthread_t threads[kAlive] = {}; local 52 if (threads[i % kAlive]) 53 pthread_join(threads[i % kAlive], 0); 54 pthread_create(&threads[i % kAlive], 0, thread_alot_func, 0); 57 pthread_join(threads[i], 0);
|
H A D | 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/mesa3d/src/gallium/tests/unit/ |
H A D | pipe_barrier_test.c | 32 * The test succeeds if no thread exits before all the other threads reach 45 static pipe_thread threads[NUM_THREADS]; variable 74 threads[i] = pipe_thread_create(thread_function, (void *) &thread_ids[i]); 78 pipe_thread_wait(threads[i]);
|
/external/valgrind/drd/tests/ |
H A D | concurrent_close.cpp | 12 /* Happens with two threads also */ 32 pthread_t threads[THREAD_COUNT]; local 37 r = pthread_create(&threads[i], &attr, thread, 0); 45 r = pthread_join(threads[i], 0);
|
/external/valgrind/none/tests/ |
H A D | pth_once.c | 14 * A program spawns multiple threads and each one tries to 20 * exit of the threads using the pthread_join() operation. 57 pthread_t threads[NUM_THREADS]; local 65 if (( rtn = pthread_create(&threads[thread_num], 76 pthread_join(threads[thread_num], NULL);
|
H A D | pth_cvsimple.c | 65 pthread_t threads[3]; local 67 pthread_create(&threads[0], NULL, watch_count, NULL); 69 pthread_create(&threads[1], NULL, inc_count, NULL); 70 pthread_create(&threads[2], NULL, inc_count, NULL); 73 pthread_join(threads[i], NULL); 77 // inc_count threads could fully run before watch_count begins, and so
|
/external/skia/tests/ |
H A D | AtomicTest.cpp | 36 SkThread* threads[SK_ARRAY_COUNT(gAdds)]; local 40 // Start the threads 42 threads[i] = new SkThread(addABunchOfTimes, &gAdds[i]); 43 threads[i]->setProcessorAffinity(gAdds[i].processorAffinity); 44 threads[i]->start(); 47 // Now end the threads 49 threads[i]->join(); 50 delete threads[i];
|
H A D | TLSTest.cpp | 34 SkThread* threads[8]; local 35 int N = SK_ARRAY_COUNT(threads); 39 threads[i] = new SkThread(proc); 43 threads[i]->start(); 47 threads[i]->join(); 51 delete threads[i];
|
/external/valgrind/helgrind/tests/ |
H A D | tc21_pthonce.c | 25 * A program spawns multiple threads and each one tries to 31 * exit of the threads using the pthread_join() operation. 43 /* With more than 2 threads, the precise error reports vary between 45 simple and just have 2 threads and so just 1 race. */ 53 /* This is a hack: delay threads except the first enough so as to 54 ensure threads[0] gets to the pthread_once call first. This is so 80 pthread_t threads[NUM_THREADS]; local 87 r= pthread_create(&threads[i], NULL, child, &id_arg[i]); 92 pthread_join(threads[i], NULL);
|
H A D | tls_threads.c | 18 /* ptr_to_badly_shared_local allows to have multiple threads seeing 59 pthread_t threads[NLEVEL2]; local 69 pthread_create(&threads[curthread++], NULL, level2, NULL); 73 pthread_join(threads[i], NULL); 81 pthread_t threads[NLEVEL1]; local 88 pthread_create(&threads[curthread++], NULL, level1, NULL); 94 pthread_join(threads[i], NULL);
|
/external/eigen/demos/mandelbrot/ |
H A D | 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/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
H A D | ThreadTest.java | 21 private ArrayList<Worker> threads = new ArrayList<Worker>(); field in class:ThreadTest 32 threads.add(thread); 36 for (Worker thread: threads) { 73 ArrayList<Thread> threads = new ArrayList<Thread>(); 75 threads.add(new Thread() { 81 for (Thread th:threads) { 84 for (Thread th:threads) {
|
/external/jetty/src/java/org/eclipse/jetty/util/thread/ |
H A D | ThreadPool.java | 41 * @return The total number of threads currently in the pool 47 * @return The number of idle threads in the pool 53 * @return True if the pool is low on threads 64 public void setMinThreads(int threads); argument 65 public void setMaxThreads(int threads); argument
|
/external/libcxxabi/test/ |
H A D | test_exception_storage.pass.cpp | 44 pthread_t threads [ NUMTHREADS ]; variable 64 // Make the threads, let them run, and wait for them to finish 66 pthread_create( threads + i, NULL, thread_code, (void *) (thread_globals + i)); 68 pthread_join ( threads [ i ], NULL );
|
/external/valgrind/coregrind/ |
H A D | pub_core_gdbserver.h | 195 // address of VG_(threads) and various sizes 197 Addr32 threads; member in struct:__anon16197 216 Addr64 threads; member in struct:__anon16198
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_mutex_test.cc | 107 pthread_t threads[kThreads]; local 109 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); 111 PTHREAD_JOIN(threads[i], 0); 118 pthread_t threads[kThreads]; local 120 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); 122 PTHREAD_JOIN(threads[i], 0); 129 pthread_t threads[kThreads]; local 131 PTHREAD_CREATE(&threads[i], 0, lock_thread<BlockingMutex>, &data); 133 PTHREAD_JOIN(threads[i], 0);
|
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_mutex_test.cc | 99 pthread_t threads[kThreads]; local 101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); 103 pthread_join(threads[i], 0); 109 pthread_t threads[kThreads]; local 111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); 113 pthread_join(threads[i], 0); 119 pthread_t threads[kThreads]; local 121 pthread_create(&threads[i], 0, write_mutex_thread<SpinMutex>, &data); 123 pthread_join(threads[i], 0);
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
H A D | linux_dumper.h | 74 // Parse the data for |threads| and |mappings|. 80 // Suspend/resume all threads in the given process. 89 const wasteful_vector<pid_t> &threads() { return threads_; } function in class:google_breakpad::LinuxDumper 175 // IDs of all the threads.
|
/external/google-breakpad/src/testing/gtest/test/ |
H A D | gtest_stress_test.cc | 33 // used in a large number of threads concurrently. 62 // How many threads to create? 105 // RecordProperty() should interact safely with other threads as well. 126 // Tests using SCOPED_TRACE() and Google Test assertions in many threads 130 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local 133 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts, 139 // Blocks until all the threads are done. 141 threads[i]->Join(); 206 // This statement should succeed, because failures in all threads are 225 // This statement should succeed, because failures in all threads ar [all...] |