/external/chromium_org/third_party/skia/tools/flags/ |
H A D | SkCommonFlags.h | 24 DECLARE_int32(threads); variable
|
/external/chromium_org/third_party/webrtc/libjingle/xmllite/ |
H A D | xmlelement_unittest.cc | 247 std::vector<rtc::Thread*> threads; local 249 threads.push_back( 251 threads[i]->Start(); 255 threads[i]->Stop(); 256 delete threads[i];
|
/external/chromium_org/tools/telemetry/telemetry/timeline/ |
H A D | process.py | 30 def threads(self): member in class:Process 52 thread = self.threads.get(tid, None)
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
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/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/libcxxabi/test/ |
H A D | test_exception_storage.cpp | 44 pthread_t threads [ NUMTHREADS ]; variable 61 // Make the threads, let them run, and wait for them to finish 63 pthread_create( threads + i, NULL, thread_code, (void *) (thread_globals + i)); 65 pthread_join ( threads [ i ], NULL );
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
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);
|
H A D | perf-time-to-tsc.c | 59 struct thread_map *threads = NULL; local 71 threads = thread_map__new(-1, getpid(), UINT_MAX); 72 CHECK_NOT_NULL__(threads); 80 perf_evlist__set_maps(evlist, cpus, threads); 175 if (threads) 176 thread_map__delete(threads);
|
/external/qemu/distrib/sdl-1.2.15/test/ |
H A D | 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 )
|
H A D | 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");
|
/external/chromium_org/mojo/system/ |
H A D | simple_dispatcher_unittest.cc | 497 ScopedVector<test::WaiterThread> threads; local 499 threads.push_back(new test::WaiterThread(d, 507 threads.back()->Start(); 512 } // Joins the threads. 525 ScopedVector<test::WaiterThread> threads; local 527 threads.push_back(new test::WaiterThread(d, 535 threads.back()->Start(); 538 threads.push_back(new test::WaiterThread(d, 546 threads.back()->Start(); 552 } // Joins the threads 572 ScopedVector<test::WaiterThread> threads; local 620 ScopedVector<test::WaiterThread> threads; local [all...] |
H A D | dispatcher_unittest.cc | 280 ScopedVector<ThreadSafetyStressThread> threads; local 285 threads.push_back(new ThreadSafetyStressThread(&event, d, op)); 286 threads.back()->Start(); 288 // Kicks off real work on the threads: 290 } // Joins all the threads. 292 // One of the threads should already have closed the dispatcher. 307 ScopedVector<ThreadSafetyStressThread> threads; local 313 threads.push_back(new ThreadSafetyStressThread(&event, d, op)); 314 threads.back()->Start(); 316 // Kicks off real work on the threads [all...] |
/external/chromium_org/testing/gtest/test/ |
H A D | gtest_stress_test.cc | 33 // used in a large number of threads concurrently. 61 // How many threads to create? 104 // RecordProperty() should interact safely with other threads as well. 125 // Tests using SCOPED_TRACE() and Google Test assertions in many threads 129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local 132 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts, 138 // Blocks until all the threads are done. 140 threads[i]->Join(); 205 // This statement should succeed, because failures in all threads are 224 // This statement should succeed, because failures in all threads ar [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/test/ |
H A D | invalid_file_test.cc | 29 int threads; member in struct:__anon12993::DecodeParam 34 return os << "threads: " << dp.threads << " file: " << dp.filename; 77 cfg.threads = input.threads;
|
/external/chromium_org/third_party/libvpx/source/libvpx/vpx/ |
H A D | vpx_decoder.h | 108 unsigned int threads; /**< Maximum number of threads to use, default 1 */ member in struct:vpx_codec_dec_cfg
|
/external/chromium_org/third_party/sqlite/src/test/ |
H A D | tt3_checkpoint.c | 23 ** Both test cases involve 1 writer/checkpointer thread and N reader threads. 95 Threadset threads = {0}; local 109 launch_thread(&err, &threads, checkpoint_starvation_reader, 0); 125 join_all_threads(&err, &threads);
|
/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/gtest/test/ |
H A D | gtest_stress_test.cc | 33 // used in a large number of threads concurrently. 61 // How many threads to create? 104 // RecordProperty() should interact safely with other threads as well. 125 // Tests using SCOPED_TRACE() and Google Test assertions in many threads 129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local 132 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts, 138 // Blocks until all the threads are done. 140 threads[i]->Join(); 205 // This statement should succeed, because failures in all threads are 224 // This statement should succeed, because failures in all threads ar [all...] |
/external/libunwind/src/coredump/ |
H A D | _UCD_internal.h | 95 struct PRSTATUS_STRUCT **threads; member in struct:UCD_info
|
/external/libvpx/libvpx/vpx/ |
H A D | vpx_decoder.h | 108 unsigned int threads; /**< Maximum number of threads to use, default 1 */ member in struct:vpx_codec_dec_cfg
|
/external/valgrind/main/none/tests/ |
H A D | tls.c | 90 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_org/base/metrics/ |
H A D | stats_table_unittest.cc | 45 slot_id = table.RegisterThread("too many threads"); 61 // CounterMixed will be incremented by odd numbered threads and 62 // decremented by even threads. 102 // Create a few threads and have them poke on their counters. 122 // Spin up a set of threads to go bang on the various counters. 123 // After we join the threads, we'll make sure the counters 125 StatsTableThread* threads[kMaxThreads]; local 127 // Spawn the threads. 129 threads[index] = new StatsTableThread("MultipleThreadsTest", index); 130 threads[inde [all...] |
/external/chromium_org/third_party/re2/re2/testing/ |
H A D | dfa_test.cc | 17 DEFINE_int32(threads, 4, "number of threads"); 58 // Build the DFA simultaneously in a bunch of threads. 65 vector<BuildThread*> threads; local 69 threads.push_back(t); 72 threads[j]->Start(); 74 threads[j]->Join(); 75 delete threads[j]; 285 // Run the search simultaneously in a bunch of threads. 292 vector<SearchThread*> threads; local [all...] |
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkTaskGroup.cpp | 26 if (!gGlobal) { // If we have no threads, run synchronously. 33 if (!gGlobal) { // If we have no threads, the work must already be done. 50 // We threads gotta stick together. We're always making forward progress. 69 explicit ThreadPool(int threads) : fDraining(false) { argument 70 if (threads == 0) { 71 threads = num_cores(); 73 for (int i = 0; i < threads; i++) { 134 SkTaskGroup::Enabler::Enabler(int threads) { argument 136 ThreadPool::gGlobal = SkNEW_ARGS(ThreadPool, (threads));
|