HomeSort by relevance Sort by last modified time
    Searched defs:threads (Results 1 - 25 of 106) sorted by null

1 2 3 4 5

  /external/compiler-rt/lib/tsan/tests/rtl/
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);
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/linux-tools-perf/util/
thread_map.c 17 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 != NULL)
    [all...]
values.h 7 int threads; member in struct:perf_read_values
evlist.h 32 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;
  /external/valgrind/main/none/tests/
pth_once.c 4 * "Using POSIX Threads: Programming with Pthreads"
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);
pth_cvsimple.c 4 * "Using POSIX Threads: Programming with Pthreads"
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
  /system/extras/tests/bionic/libc/common/
test_pthread_once.c 65 pthread_t threads[N_THREADS]; local
69 if (pthread_create( &threads[nn], NULL, thread_function, (void*)(long int)nn) < 0) {
76 if (pthread_join(threads[nn], NULL)) {
test_pthread_getcpuclockid.c 73 pthread_t threads[MAX_THREADS]; local
79 pthread_create( &threads[nn], &attr, thread_func, (void*)nn );
83 pthread_join( threads[nn], &dummy );
  /external/chromium/base/threading/
thread_local_storage_unittest.cc 71 // 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/chromium/chrome/browser/net/
chrome_net_log_unittest.cc 42 // 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/qemu/distrib/sdl-1.2.15/test/
testlock.c 15 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 )
testsem.c 60 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");
torturethread.c 61 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);
  /external/skia/tests/
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];
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/main/coregrind/
pub_core_gdbserver.h 154 // address of VG_(threads) and various sizes
156 Addr32 threads; member in struct:__anon16940
174 Addr64 threads; member in struct:__anon16941
  /external/valgrind/main/helgrind/tests/
tc21_pthonce.c 15 * "Using POSIX Threads: Programming with Pthreads"
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
86 r= pthread_create(&threads[i], NULL, child, &id_arg[i]);
91 pthread_join(threads[i], NULL)
    [all...]
  /sdk/emulator/opengl/host/libs/libOpenglRender/
RenderServer.cpp 81 RenderThreadsSet threads; local
118 // remove from the threads list threads which are
121 for (RenderThreadsSet::iterator n,t = threads.begin();
122 t != threads.end();
132 threads.erase(t);
137 threads.insert(rt);
143 // Wait for all threads to finish
145 for (RenderThreadsSet::iterator t = threads.begin();
146 t != threads.end()
    [all...]
  /sdk/emulator/qtools/
dmtrace.h 57 std::vector<ThreadRecord*> *threads; member in class:DmTrace
  /dalvik/tests/051-thread/src/
Main.java 26 MyThread[] threads = new MyThread[512]; local
28 threads[i] = new MyThread();
31 for (MyThread thread : threads) {
34 for (MyThread thread : threads) {
  /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;
  /libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
FileClientSessionCacheTest.java 35 Thread[] threads = new Thread[10]; local
37 for (int i = 0; i < threads.length; i++) {
39 threads[i] = new Thread() {
48 for (Thread thread : threads) {
51 for (Thread thread : threads) {
  /system/core/libsync/
sync_test.c 78 pthread_t threads[4]; local
118 pthread_create(&threads[i], NULL, sync_thread, &sync_data[i]);
142 pthread_join(threads[i], &val);
  /external/chromium/testing/gtest/test/
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...]

Completed in 8926 milliseconds

1 2 3 4 5