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

123456

/external/chromium_org/third_party/webrtc/test/channel_transport/
H A Dudp_socket_manager_unittest.cc28 uint8_t threads = 1; local
29 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
31 EXPECT_FALSE(mgr->Init(id, threads))
40 uint8_t threads = 1; local
41 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
65 uint8_t threads = 1;
66 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
H A Dudp_socket_wrapper_unittest.cc54 uint8_t threads = 1; local
55 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/
H A Dopen-syscall.c11 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 Dkeep-tracking.c63 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 Dopen-syscall-all-cpus.c14 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);
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dthread_map.h20 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 Dvalues.h7 int threads; member in struct:perf_read_values
/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/
H A Dpipe_barrier_test.c32 * 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/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);
/external/mesa3d/src/gallium/tests/unit/
H A Dpipe_barrier_test.c32 * 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/main/drd/tests/
H A Dconcurrent_close.cpp12 /* 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/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
/external/chromium_org/third_party/libvpx/source/libvpx/test/
H A Ddecode_perf_test.cc30 DecodePerfTest takes a tuple of filename + number of threads to decode with
72 const unsigned threads = GET_PARAM(THREADS); local
78 cfg.threads = threads;
98 printf("\t\"threadCount\" : %u,\n", threads);
/external/chromium_org/third_party/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/libvpx/libvpx/test/
H A Ddecode_perf_test.cc30 DecodePerfTest takes a tuple of filename + number of threads to decode with
70 const unsigned threads = GET_PARAM(THREADS); local
76 cfg.threads = threads;
95 printf("\t\"threadCount\" : %u,\n", threads);
/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);
/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.h182 // address of VG_(threads) and various sizes
184 Addr32 threads; member in struct:__anon32711
202 Addr64 threads; member in struct:__anon32712
/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
87 r= pthread_create(&threads[i], NULL, child, &id_arg[i]);
92 pthread_join(threads[i], NULL);
/external/chromium_org/base/threading/
H A Dthread_local_storage_unittest.cc99 // threads that set the TLS, while the destructor cleans it up.
100 // After the threads finish, verify that the value is cleaned up.
104 DelegateSimpleThread* threads[kNumThreads]; local
108 // Spawn the threads.
112 threads[index] = new DelegateSimpleThread(thread_delegates[index],
114 threads[index]->Start();
117 // Wait for the threads to finish.
119 threads[index]->Join();
120 delete threads[index];
126 tls_slot.Free(); // Stop doing callbacks to cleanup threads
[all...]
/external/chromium_org/content/common/
H A Done_writer_seqlock_unittest.cc70 BasicSeqLockTestThread threads[kNumReaderThreads]; local
74 threads[i].Init(&seqlock, &data, &ready);
76 ASSERT_TRUE(PlatformThread::Create(0, &threads[i], &handles[i]));
/external/chromium_org/third_party/libjingle/source/talk/xmllite/
H A Dxmlelement_unittest.cc264 std::vector<rtc::Thread*> threads; local
266 threads.push_back(
268 threads[i]->Start();
272 threads[i]->Stop();
273 delete threads[i];

Completed in 749 milliseconds

123456