/external/webrtc/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 | 53 uint8_t threads = 1; local 54 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
|
/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/ltp/lib/newlib_tests/ |
H A D | test09.c | 42 pthread_t threads[THREADS]; local 45 pthread_create(threads+i, NULL, worker, (void *)i); 49 pthread_join(threads[i], NULL);
|
H A D | test08.c | 40 /* Avoid subsequent threads to enter the cleanup */ 59 pthread_t threads[THREADS]; local 62 pthread_create(threads+i, NULL, worker, (void*)i); 66 pthread_join(threads[i], NULL);
|
/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/skia/src/core/ |
H A D | SkTaskGroup.cpp | 42 SkTaskGroup::Enabler::Enabler(int threads) { argument 43 if (threads) { 44 fThreadPool = SkExecutor::MakeThreadPool(threads);
|
/external/valgrind/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/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/ImageMagick/MagickCore/ |
H A D | thread-private.h | 131 static inline void SetOpenMPMaximumThreads(const int threads) argument 134 omp_set_num_threads(threads); 136 (void) threads;
|
/external/eigen/unsupported/test/ |
H A D | cxx11_runqueue.cpp | 158 // One thread (owner) calls PushFront/PopFront, other threads call PushBack/ 165 std::vector<std::unique_ptr<std::thread>> threads; local 166 threads.emplace_back(new std::thread([&q, &total]() { 188 threads.emplace_back(new std::thread([&q, &total]() { 200 threads.emplace_back(new std::thread([&q, &total]() { 225 for (size_t i = 0; i < threads.size(); i++) threads[i]->join();
|
/external/elfutils/tests/ |
H A D | dwfl-proc-attach.c | 66 int *threads = (int *) thread_arg; local 69 (*threads)++; 78 /* Create two extra threads to iterate through. */ 95 /* Did we see all 3 threads? */ 96 int threads = 0; local 97 if (dwfl_getthreads (dwfl, thread_callback, &threads) != DWARF_CB_OK) 100 return (threads == 3) ? 0 : -1;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
H A D | ThreadTest.java | 23 private ArrayList<Worker> threads = new ArrayList<Worker>(); field in class:ThreadTest 39 threads.add(thread); 43 for (Worker thread: threads) { 81 ArrayList<Thread> threads = new ArrayList<Thread>(); 83 threads.add(new Thread() { 89 for (Thread th:threads) { 92 for (Thread th:threads) {
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
H A D | ThreadTest.java | 22 private ArrayList<Worker> threads = new ArrayList<Worker>(); field in class:ThreadTest 38 threads.add(thread); 42 for (Worker thread: threads) { 80 ArrayList<Thread> threads = new ArrayList<Thread>(); 82 threads.add(new Thread() { 88 for (Thread th:threads) { 91 for (Thread th:threads) {
|
/external/libcxxabi/test/ |
H A D | test_exception_storage.pass.cpp | 42 std::__libcpp_thread_t threads [ NUMTHREADS ]; variable 49 // Make the threads, let them run, and wait for them to finish 51 std::__libcpp_thread_create ( threads + i, thread_code, (void *) (thread_globals + i)); 53 std::__libcpp_thread_join ( &threads [ i ] );
|
/external/linux-kselftest/tools/testing/selftests/powerpc/math/ |
H A D | fpu_preempt.c | 12 * no way to be sure preemption happened so this test just uses many threads 32 * worker threads 61 int i, rc, threads; local 64 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; 65 tids = malloc((threads) * sizeof(pthread_t)); 69 threads_starting = threads; 70 for (i = 0; i < threads; i++) { 92 for (i = 0; i < threads; i++) {
|
/external/ltp/testcases/kernel/sched/pthreads/ |
H A D | pth_str01.h | 26 pthread_t *threads; /* dynamic array of thread */ member in struct:child_info
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
H A D | 1-2.c | 91 pthread_t threads[3]; variable 98 threads[0] = pthread_self(); 103 threads[1] = pthread_self(); 108 threads[2] = pthread_self(); 139 if (!pthread_equal(ch, threads[0])) { 144 if (!pthread_equal(pthread_self(), threads[2])) { 153 if (!pthread_equal(ch, threads[0])) { 158 if (!pthread_equal(pthread_self(), threads[1])) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/ |
H A D | 1-1.c | 16 * -- Create N threads. Each is looped M times to acquire the mutex, 42 pthread_t threads[THREAD_NUM]; local 48 /* Create threads */ 49 fprintf(stderr, "Creating %d threads\n", THREAD_NUM); 51 rc = pthread_create(&threads[i], &pta, f1, NULL); 53 /* Wait to join all threads */ 55 pthread_join(threads[i], NULL); 61 fprintf(stderr, "Using %d threads and each loops %d times\n",
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/ |
H A D | 2-1.c | 9 * If there are threads blocked on the mutex object referenced by 'mutex' when 19 * -- Create N threads. Each is looped M times to acquire the mutex, 44 pthread_t threads[THREAD_NUM]; local 46 /* Create threads */ 47 fprintf(stderr, "Creating %d threads\n", THREAD_NUM); 49 rc = pthread_create(&threads[i], NULL, func, NULL); 51 /* Wait to join all threads */ 53 pthread_join(threads[i], NULL); 58 fprintf(stderr, "Using %d threads and each loops %d times\n",
|
/external/skia/tests/ |
H A D | TLSTest.cpp | 35 SkThread* threads[8]; local 36 int N = SK_ARRAY_COUNT(threads); 40 threads[i] = new SkThread(proc); 44 threads[i]->start(); 48 threads[i]->join(); 52 delete threads[i];
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/debugging/value/ |
H A D | LazyThreadGroupReference.java | 68 @Override public List<ThreadReference> threads() { method in class:LazyThreadGroupReference 69 return getValue().threads();
|
/external/valgrind/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/autotest/client/tests/monotonic_time/src/ |
H A D | threads.c | 14 #include "threads.h" 26 static thread_t threads[MAX_THREADS]; variable 48 * Create a set of threads each of which is bound to one of 50 * Returns the number of threads created. 64 thread = &threads[num_threads++]; 83 * Create nthreads threads. 84 * Returns the number of threads created. 95 thread = &threads[num_threads++]; 113 * Join with the set of previsouly created threads. 118 pthread_join(threads[ [all...] |