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

12345

/external/webrtc/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.cc53 uint8_t threads = 1; local
54 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
/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);
H A Dtsan_mutex.cc192 // 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/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/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/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/ImageMagick/MagickCore/
H A Dthread-private.h131 static inline void SetOpenMPMaximumThreads(const int threads) argument
134 omp_set_num_threads(threads);
136 (void) threads;
/external/elfutils/tests/
H A Ddwfl-proc-attach.c66 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 DThreadTest.java25 private ArrayList<Worker> threads = new ArrayList<Worker>(); field in class:ThreadTest
36 threads.add(thread);
40 for (Worker thread: threads) {
77 ArrayList<Thread> threads = new ArrayList<Thread>();
79 threads.add(new Thread() {
85 for (Thread th:threads) {
88 for (Thread th:threads) {
/external/skia/tests/
H A DAtomicTest.cpp35 SkThread* threads[SK_ARRAY_COUNT(gAdds)]; local
39 // Start the threads
41 threads[i] = new SkThread(addABunchOfTimes, &gAdds[i]);
42 threads[i]->start();
45 // Now end the threads
47 threads[i]->join();
48 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/smali/smalidea/src/main/java/org/jf/smalidea/debugging/value/
H A DLazyThreadGroupReference.java68 @Override public List<ThreadReference> threads() { method in class:LazyThreadGroupReference
69 return getValue().threads();
/external/valgrind/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);
H A Dtls_threads.c18 /* ptr_to_badly_shared_local allows to have multiple threads seeing
59 pthread_t threads[NLEVEL2]; local
69 pthread_create(&threads[curthread++], NULL, level2, NULL);
73 pthread_join(threads[i], NULL);
81 pthread_t threads[NLEVEL1]; local
88 pthread_create(&threads[curthread++], NULL, level1, NULL);
94 pthread_join(threads[i], NULL);
/external/autotest/client/tests/monotonic_time/src/
H A Dthreads.c14 #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...]
/external/eigen/demos/mandelbrot/
H A Dmandelbrot.h45 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/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
H A DThreadTest.java21 private ArrayList<Worker> threads = new ArrayList<Worker>(); field in class:ThreadTest
32 threads.add(thread);
36 for (Worker thread: threads) {
73 ArrayList<Thread> threads = new ArrayList<Thread>();
75 threads.add(new Thread() {
81 for (Thread th:threads) {
84 for (Thread th:threads) {
/external/jetty/src/java/org/eclipse/jetty/util/thread/
H A DThreadPool.java41 * @return The total number of threads currently in the pool
47 * @return The number of idle threads in the pool
53 * @return True if the pool is low on threads
64 public void setMinThreads(int threads); argument
65 public void setMaxThreads(int threads); argument
/external/libchrome/base/threading/
H A Dthread_local_storage_unittest.cc100 // threads that set the TLS, while the destructor cleans it up.
101 // After the threads finish, verify that the value is cleaned up.
105 DelegateSimpleThread* threads[kNumThreads]; local
109 // Spawn the threads.
113 threads[index] = new DelegateSimpleThread(thread_delegates[index],
115 threads[index]->Start();
118 // Wait for the threads to finish.
120 threads[index]->Join();
121 delete threads[index];
127 tls_slot.Free(); // Stop doing callbacks to cleanup threads
[all...]
/external/libcxxabi/test/
H A Dtest_exception_storage.pass.cpp44 pthread_t threads [ NUMTHREADS ]; variable
64 // Make the threads, let them run, and wait for them to finish
66 pthread_create( threads + i, NULL, thread_code, (void *) (thread_globals + i));
68 pthread_join ( threads [ i ], NULL );
/external/skia/tools/flags/
H A DSkCommonFlags.h25 DECLARE_int32(threads); variable
/external/valgrind/coregrind/
H A Dpub_core_gdbserver.h195 // address of VG_(threads) and various sizes
197 Addr32 threads; member in struct:__anon20243
216 Addr64 threads; member in struct:__anon20244
/external/webrtc/webrtc/libjingle/xmllite/
H A Dxmlelement_unittest.cc247 std::vector<rtc::Thread*> threads; local
249 threads.push_back(
251 threads[i]->Start();
255 threads[i]->Stop();
256 delete threads[i];

Completed in 1137 milliseconds

12345