Searched refs:threads (Results 1 - 25 of 361) sorted by relevance

1234567891011>>

/external/valgrind/drd/tests/
H A Dlinuxthreads_det.stdout.exp1 NPTL or non-Linux POSIX threads implementation detected.
/external/libcxx/test/std/atomics/
H A Dlibcpp-has-no-threads.pass.cpp9 // XFAIL: libcpp-has-no-threads
13 'libcpp-has-no-threads' is available iff _LIBCPP_HAS_NO_THREADS is defined
/external/v8/test/unittests/base/platform/
H A Dcondition-variable-unittest.cc61 ThreadWithMutexAndConditionVariable threads[kThreadCount]; local
64 LockGuard<Mutex> lock_guard(&threads[n].mutex_);
65 EXPECT_FALSE(threads[n].running_);
66 EXPECT_FALSE(threads[n].finished_);
67 threads[n].Start();
69 while (!threads[n].running_) {
70 threads[n].cv_.Wait(&threads[n].mutex_);
75 LockGuard<Mutex> lock_guard(&threads[n].mutex_);
76 EXPECT_TRUE(threads[
141 ThreadWithSharedMutexAndConditionVariable threads[kThreadCount]; local
276 Thread** threads = new Thread* [thread_count]; local
[all...]
/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);
/external/valgrind/coregrind/
H A Dm_threadstate.c47 ThreadState *VG_(threads);
58 VG_(threads) = VG_(arena_memalign) (VG_AR_CORE, "init_Threads",
60 VG_N_THREADS * sizeof VG_(threads)[0]);
64 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].status,
65 sizeof(VG_(threads)[tid].status), ""));
67 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].os_state.exitcode,
68 sizeof(VG_(threads)[tid].os_state.exitcode),
100 vg_assert(VG_(threads)[tid].tid == tid);
101 return &VG_(threads)[tid];
109 if (VG_(threads)[ti
[all...]
/external/autotest/client/tests/stress/
H A Dstress.py33 threads = 2 * utils.count_cpus()
39 memory_per_thread = (mb * 1024) / threads
46 if (0.9 * free_disk) < file_size_per_thread * threads:
47 file_size_per_thread = (0.9 * free_disk) / threads
50 args = '--cpu %d ' % threads
52 args += '--io %d ' % threads
54 args += '--vm %d ' % threads
58 args += '--hdd %d ' % 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/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/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/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/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/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/EventModifiers/
H A DThreadOnlyModifierDebuggee.java83 logWriter.println("Create threads");
84 Thread[] threads = new Thread[10];
85 for (int i = 0; i < threads.length; ++i) {
86 threads[i] = new Thread(new TestThread(obj));
87 threads[i].setName("TestThread#" + i);
91 THREAD_ONLY = threads[threads.length - 1];
100 // Run all threads.
101 for (int i = 0; i < threads.length; ++i) {
102 runThread(threads[
[all...]
/external/autotest/site_utils/
H A Dstats_poller.py20 threads = []
25 threads.append(threading.Thread(target=f, args=(sam,)))
29 threads.append(threading.Thread(target=f, args=(drone,)))
33 threads.append(threading.Thread(target=f, args=(devserver,)))
36 threads.append(threading.Thread(target=f))
38 for thread in threads:
43 # thread. If we notice that all of our threads disappeared though, there's
/external/skia/tests/
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];
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];
/external/valgrind/helgrind/tests/
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/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
H A DCollationThreadTest.java227 private void runThreads(Thread[] threads, Control control) { argument
228 for (int i = 0; i < threads.length; ++i) {
229 threads[i].start();
242 for (int i = 0; i < threads.length; ++i) {
243 threads[i].join();
259 Thread[] threads = new Thread[10];
260 for (int i = 0; i < threads.length; ++i) {
271 threads[i] = new Thread(test);
274 runThreads(threads, control);
283 Thread[] threads
[all...]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DCollationThreadTest.java223 private void runThreads(Thread[] threads, Control control) { argument
224 for (int i = 0; i < threads.length; ++i) {
225 threads[i].start();
238 for (int i = 0; i < threads.length; ++i) {
239 threads[i].join();
255 Thread[] threads = new Thread[10];
256 for (int i = 0; i < threads.length; ++i) {
267 threads[i] = new Thread(test);
270 runThreads(threads, control);
279 Thread[] threads
[all...]
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_mutex_test.cc107 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 Dtsan_mutex_test.cc99 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/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
H A DResume002Debuggee.java30 // The method used to suspend threads on breakpoint.
59 // Create tested threads.
60 Thread[] threads = new Thread[THREAD_COUNT];
61 for (int i = 0; i < threads.length; ++i) {
62 threads[i] = new ResumeThread(i);
65 // Start threads.
66 logWriter.println("Starting threads");
67 for (Thread t : threads) {
71 // Wait for all tested threads to finish.
72 logWriter.println("Waiting end of threads");
[all...]
/external/autotest/client/virt/tests/
H A Dnicdriver_unload.py43 threads = []
48 threads.append(thread)
51 while threads[0].isAlive():
58 for thread in threads:
62 for thread in threads:
/external/conscrypt/src/test/java/org/conscrypt/
H A DFileClientSessionCacheTest.java35 Thread[] threads = new Thread[10];
37 for (int i = 0; i < threads.length; i++) {
39 threads[i] = new Thread() {
48 for (Thread thread : threads) {
51 for (Thread thread : threads) {
/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/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;

Completed in 884 milliseconds

1234567891011>>