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

12

/external/valgrind/main/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
H A Dtls.c90 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/chrome/browser/net/
H A Dchrome_net_log_unittest.cc42 // Only triggered once all threads have been created, to make it much less
57 ChromeNetLogTestThread threads[kThreads]; local
60 threads[i].Init(&log);
61 threads[i].Start();
65 threads[i].ReallyStart();
68 threads[i].Join();
/external/valgrind/main/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
86 r= pthread_create(&threads[i], NULL, child, &id_arg[i]);
91 pthread_join(threads[i], NULL);
/external/chromium/base/threading/
H A Dthread_local_storage_unittest.cc71 // threads that set the TLS, while the destructor cleans it up.
72 // After the threads finish, verify that the value is cleaned up.
76 DelegateSimpleThread* threads[kNumThreads]; local
80 // Spawn the threads.
84 threads[index] = new DelegateSimpleThread(thread_delegates[index],
86 threads[index]->Start();
89 // Wait for the threads to finish.
91 threads[index]->Join();
92 delete threads[index];
/external/libvpx/vpx/
H A Dvpx_decoder.h94 unsigned int threads; /**< Maximum number of threads to use, default 1 */ member in struct:vpx_codec_dec_cfg
/external/chromium/testing/gtest/test/
H A Dgtest_stress_test.cc33 // used in a large number of threads concurrently.
62 // How many threads to create?
105 // RecordProperty() should interact safely with other threads as well.
126 // Tests using SCOPED_TRACE() and Google Test assertions in many threads
130 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local
133 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts,
139 // Blocks until all the threads are done.
141 threads[i]->Join();
206 // This statement should succeed, because failures in all threads are
225 // This statement should succeed, because failures in all threads ar
[all...]
/external/bluetooth/glib/tests/
H A Donceinit.c91 g_usleep (25 * 1000); /* waste time for multiple threads to wait */
115 GThread *threads[N_THREADS]; local
125 /* setup threads */
129 /* start multiple threads for initializer3() */
132 threads[i] = g_thread_create (tmain_call_initializer3, 0, FALSE, NULL);
136 /* loop until all threads passed the call to initializer3() */
145 /* call multiple (unoptimized) initializers from multiple threads */
152 g_usleep (50 * 1000); /* wait for all 5 threads to complete */
H A Dslice-test.c275 GThread **threads; local
280 g_print ("Starting %d threads allocating random blocks <= %u bytes with seed=%s using %s%s\n", n_threads, prime_size, strseed, mode, emode);
282 threads = g_alloca (sizeof(GThread*) * n_threads);
285 threads[i] = g_thread_create_full (test_sliced_mem_thread, seedp, 0, TRUE, FALSE, 0, NULL);
290 threads[i] = g_thread_create_full (test_memchunk_thread, seedp, 0, TRUE, FALSE, 0, NULL);
293 g_thread_join (threads[i]);
H A Dthread-test.c194 GThread *threads[THREADS]; local
201 threads[i] = g_thread_create (test_g_static_private_thread,
216 g_assert (GPOINTER_TO_INT (g_thread_join (threads[i])) == i * 3);
284 GThread *threads[THREADS]; local
288 threads[i] = g_thread_create (test_g_static_rw_lock_thread,
295 g_thread_join (threads[i]);
322 /* Don't start before all threads are created */
347 GThread *threads[G_ONCE_THREADS]; local
357 threads[i] = g_thread_create (test_g_once_thread, GUINT_TO_POINTER(i%2),
363 g_thread_join (threads[
[all...]
/external/chromium/base/metrics/
H A Dstats_table_unittest.cc51 slot_id = table.RegisterThread("too many threads");
69 // CounterMixed will be incremented by odd numbered threads and
70 // decremented by even threads.
108 // Create a few threads and have them poke on their counters.
121 // Spin up a set of threads to go bang on the various counters.
122 // After we join the threads, we'll make sure the counters
124 StatsTableThread* threads[kMaxThreads]; local
126 // Spawn the threads.
128 threads[index] = new StatsTableThread("MultipleThreadsTest", index);
129 threads[inde
[all...]
/external/qemu/distrib/sdl-1.2.12/src/thread/
H A DSDL_thread.c32 /* The array of threads currently active in the application
55 clean up threads here. If any threads are still running after this call,
73 If the very first threads are created simultaneously, then
85 /* Expand the list of threads, if necessary */
91 SDL_Thread **threads; local
92 threads = (SDL_Thread **)SDL_realloc(SDL_Threads,
93 (SDL_maxthreads+ARRAY_CHUNKSIZE)*(sizeof *threads));
94 if ( threads == NULL ) {
99 SDL_Threads = threads;
[all...]
/external/qemu/distrib/sdl-1.2.12/src/thread/amigaos/
H A DSDL_thread.c32 /* The array of threads currently active in the application
51 clean up threads here. If any threads are still running after this call,
62 SDL_Thread **threads; local
65 If the very first threads are created simultaneously, then
77 /* Expand the list of threads, if necessary */
83 threads=(SDL_Thread **)SDL_malloc((SDL_maxthreads+ARRAY_CHUNKSIZE)*
84 (sizeof *threads));
85 if ( threads == NULL ) {
89 SDL_memcpy(threads, SDL_Thread
[all...]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
H A DThreadGroupTest.java273 assertTrue("Can't destroy a ThreadGroup that has threads", passed);
290 "Should be able to destroy a ThreadGroup that has no threads",
401 // wipeSideEffectThreads destroy all side effect of threads created in
405 fail("wipe threads in test_list() not successful");
840 // Give the threads a chance to die.
846 private Thread[] threads(ThreadGroup parent) { method in class:ThreadGroupTest
893 Thread[] threads = threads(aGroup);
894 for (Thread t : threads) {
910 Thread[] threads
980 allSuspended(Vector<MyThread> threads) argument
[all...]
/external/bluetooth/glib/gobject/tests/
H A Dthreadtests.c68 g_thread_yield(); // let concurrent threads corrupt the unsafe_call_counter state
120 /* first, syncronize with other threads,
140 GThread *threads[3] = { NULL, }; local
141 /* pause newly created threads */
143 /* create threads */
144 threads[0] = g_thread_create (tester_init_thread, (gpointer) my_tester0_get_type(), TRUE, NULL);
145 threads[1] = g_thread_create (tester_init_thread, (gpointer) my_tester1_get_type(), TRUE, NULL);
146 threads[2] = g_thread_create (tester_init_thread, (gpointer) my_tester2_get_type(), TRUE, NULL);
147 /* execute threads */
153 g_usleep (50 * 1000); /* wait for threads t
[all...]
/external/chromium/base/
H A Dobserver_list_unittest.cc171 bool do_notifies_; // Whether these threads should do notifications.
270 // of observer threads, each of which constantly adds/removes itself
272 // to true, the observer threads will also trigger notifications to
292 base::PlatformThreadHandle threads[kMaxThreads]; local
296 threaded_observer[index], &threads[index]));
311 PlatformThread::Join(threads[index]);
316 // Use 7 observer threads. Notifications only come from
322 // Use 3 observer threads. Notifications will fire from
323 // the main thread and all 3 observer threads.
H A Dtime_win_unittest.cc69 // 2) Create N threads
70 // 3) Start the threads
84 HANDLE threads[kThreads]; local
89 threads[index] = reinterpret_cast<HANDLE>(
92 EXPECT_NE((HANDLE)NULL, threads[index]);
98 // Wait for threads to finish
100 DWORD rv = WaitForSingleObject(threads[index], INFINITE);
/external/protobuf/src/google/protobuf/stubs/
H A Donce_unittest.cc209 scoped_ptr<TestThread> threads[4]; local
212 threads[i].reset(RunInitOnceInNewThread());
215 threads[i]->Join();
226 scoped_ptr<TestThread> threads[8]; local
231 threads[i].reset(RunInitOnceInNewThread());
234 threads[i].reset(RunInitRecursiveOnceInNewThread());
246 threads[i]->Join();
/external/qemu/memcheck/
H A Dmemcheck_proc_management.h45 /* List of threads running in context of this process. */
46 QLIST_HEAD(threads, ThreadDesc) threads; member in struct:ProcDesc
/external/icu4c/test/intltest/
H A Dtzfmttst.cpp303 umtx_unlock(NULL); // Unlock for other threads to use
518 TestTimeRoundTripThread **threads = new TestTimeRoundTripThread*[threadCount]; local
521 threads[i] = new TestTimeRoundTripThread(*this, data, i);
522 if (threads[i]->start() != 0) {
540 delete threads[i];
542 delete [] threads;
H A Dtsmthred.cpp194 // TestThreads -- see if threads really work at all.
196 // Set up N threads pointing at N chars. When they are started, they will
218 SimpleThread *threads[THREADTEST_NRTHREADS]; local
225 threads[i] = new TestThreadsThread(&threadTestChars[i]);
229 logln("->" + UnicodeString(threadTestChars) + "<- Firing off threads.. ");
232 if (threads[i]->start() != 0) {
242 logln("Waiting for threads to be set..");
244 errln("No threads could be started for testing!");
265 logln("->" + UnicodeString(threadTestChars) + "<- Got all threads! cya");
268 delete threads[
339 TestMutexThread *threads[TESTMUTEX_THREAD_COUNT]; local
[all...]
/external/chromium/chrome/browser/sync/syncable/
H A Dsyncable_unittest.cc1662 base::PlatformThreadHandle threads[kThreadCount]; local
1669 0, thread_delegates[i].get(), &threads[i]));
1673 base::PlatformThread::Join(threads[i]);
/external/libvpx/
H A Dvpxenc.c911 static const arg_def_t threads = ARG_DEF("t", "threads", 1, variable
912 "Max number of threads to use");
928 &use_yv12, &use_i420, &usage, &threads, &profile,
1254 else if (arg_match(&arg, &threads, argi))
/external/v8/src/
H A Ddebug-debugger.js1405 } else if (request.command == 'threads') {
2238 // Get the number of threads.
2241 // Get information for all threads.
2242 var threads = [];
2248 threads.push(thread_info);
2254 threads: threads

Completed in 1451 milliseconds

12