Searched defs:threads (Results 1 - 25 of 61) sorted by relevance

123

/external/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_thread.cc50 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 Dtsan_mutex.cc192 // 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/valgrind/main/none/tests/
H A Dpth_once.c14 * 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 Dpth_cvsimple.c65 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
H A Dtls.c90 pthread_t threads[NTESTS*2]; local
96 pthread_create(&threads[curthread++], NULL, tls_ptr, (void *)&tests[i]);
97 pthread_create(&threads[curthread++], NULL, tls_ptr, (void *)&tests[i]);
101 pthread_join(threads[i], NULL);
/external/chromium/chrome/browser/net/
H A Dchrome_net_log_unittest.cc42 // Only triggered once all threads have been created, to make it much less
57 ChromeNetLogTestThread threads[kThreads]; local
60 threads[i].Init(&log);
61 threads[i].Start();
65 threads[i].ReallyStart();
68 threads[i].Join();
/external/linux-tools-perf/util/
H A Dthread_map.c17 struct thread_map *threads; local
28 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items);
29 if (threads != NULL) {
31 threads->map[i] = atoi(namelist[i]->d_name);
32 threads->nr = items;
39 return threads;
44 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); local
46 if (threads !
61 thread_map__delete(struct thread_map *threads) argument
[all...]
H A Dvalues.h7 int threads; member in struct:perf_read_values
H A Devlist.h32 struct thread_map *threads; member in struct:perf_evlist
39 struct thread_map *threads);
41 struct thread_map *threads);
64 struct thread_map *threads)
67 evlist->threads = threads;
62 perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus, struct thread_map *threads) argument
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtorturethread.c61 SDL_Thread *threads[NUMTHREADS]; local
73 threads[i] = SDL_CreateThread(ThreadFunc, (void *)(uintptr_t)i);
75 if ( threads[i] == NULL ) {
87 SDL_WaitThread(threads[i], NULL);
H A Dtestlock.c15 static SDL_Thread *threads[6]; variable
43 SDL_KillThread(threads[i]);
64 /* If this sleep isn't done, then threads may starve */
95 if ( (threads[i]=SDL_CreateThread(Run, NULL)) == NULL )
H A Dtestsem.c60 SDL_Thread *threads[NUM_THREADS]; local
80 printf("Running %d threads, semaphore value = %d\n", NUM_THREADS, init_sem);
81 /* Create all the threads */
83 threads[i] = SDL_CreateThread(ThreadFunc, (void*)i);
89 /* Wait for all threads to finish */
90 printf("Waiting for threads to finish\n");
93 SDL_WaitThread(threads[i], NULL);
95 printf("Finished waiting for threads\n");
/external/skia/tests/
H A DAtomicTest.cpp36 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 DTLSTest.cpp34 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/main/coregrind/
H A Dpub_core_gdbserver.h154 // address of VG_(threads) and various sizes
156 Addr32 threads; member in struct:__anon14983
174 Addr64 threads; member in struct:__anon14984
/external/valgrind/main/helgrind/tests/
H A Dtc21_pthonce.c25 * 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
86 r= pthread_create(&threads[i], NULL, child, &id_arg[i]);
91 pthread_join(threads[i], NULL);
/external/chromium/base/threading/
H A Dthread_local_storage_unittest.cc71 // threads that set the TLS, while the destructor cleans it up.
72 // After the threads finish, verify that the value is cleaned up.
76 DelegateSimpleThread* threads[kNumThreads]; local
80 // Spawn the threads.
84 threads[index] = new DelegateSimpleThread(thread_delegates[index],
86 threads[index]->Start();
89 // Wait for the threads to finish.
91 threads[index]->Join();
92 delete threads[index];
/external/eigen/demos/mandelbrot/
H A Dmandelbrot.h45 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/chromium/testing/gtest/test/
H A Dgtest_stress_test.cc33 // 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...]
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_mutex_test.cc105 pthread_t threads[kThreads]; local
107 pthread_create(&threads[i], 0, lock_thread<SpinMutex>, &data);
109 pthread_join(threads[i], 0);
116 pthread_t threads[kThreads]; local
118 pthread_create(&threads[i], 0, try_thread<SpinMutex>, &data);
120 pthread_join(threads[i], 0);
127 pthread_t threads[kThreads]; local
129 pthread_create(&threads[i], 0, lock_thread<BlockingMutex>, &data);
131 pthread_join(threads[i], 0);
/external/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_mutex_test.cc99 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/gtest/test/
H A Dgtest_stress_test.cc33 // 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...]
/external/libvpx/libvpx/third_party/googletest/src/test/
H A Dgtest_stress_test.cc33 // 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...]
/external/libvpx/libvpx/vpx/
H A Dvpx_decoder.h103 unsigned int threads; /**< Maximum number of threads to use, default 1 */ member in struct:vpx_codec_dec_cfg
/external/chromium/base/metrics/
H A Dstats_table_unittest.cc51 slot_id = table.RegisterThread("too many threads");
69 // CounterMixed will be incremented by odd numbered threads and
70 // decremented by even threads.
108 // Create a few threads and have them poke on their counters.
121 // Spin up a set of threads to go bang on the various counters.
122 // After we join the threads, we'll make sure the counters
124 StatsTableThread* threads[kMaxThreads]; local
126 // Spawn the threads.
128 threads[index] = new StatsTableThread("MultipleThreadsTest", index);
129 threads[inde
[all...]

Completed in 4039 milliseconds

123