/external/chromium_org/third_party/webrtc/test/channel_transport/ |
H A D | udp_socket_manager_unittest.cc | 28 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 D | udp_socket_wrapper_unittest.cc | 54 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 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);
|
/external/linux-tools-perf/perf-3.12.0/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/chromium_org/third_party/mesa/src/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/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);
|
/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/main/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/main/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/chromium_org/third_party/libvpx/source/libvpx/test/ |
H A D | decode_perf_test.cc | 30 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 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/libvpx/libvpx/test/ |
H A D | decode_perf_test.cc | 30 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 D | 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/ |
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/main/coregrind/ |
H A D | pub_core_gdbserver.h | 182 // 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 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);
|
/external/chromium_org/base/threading/ |
H A D | thread_local_storage_unittest.cc | 99 // 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 D | one_writer_seqlock_unittest.cc | 70 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 D | xmlelement_unittest.cc | 264 std::vector<rtc::Thread*> threads; local 266 threads.push_back( 268 threads[i]->Start(); 272 threads[i]->Stop(); 273 delete threads[i];
|