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

123

/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/linux-tools-perf/util/
H A Dthread_map.c17 struct thread_map *threads; local
28 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items);
29 if (threads != NULL) {
31 threads->map[i] = atoi(namelist[i]->d_name);
32 threads->nr = items;
39 return threads;
44 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); local
46 if (threads !
61 thread_map__delete(struct thread_map *threads) argument
[all...]
H A Dvalues.h7 int threads; member in struct:perf_read_values
H A Devlist.h32 struct thread_map *threads; member in struct:perf_evlist
39 struct thread_map *threads);
41 struct thread_map *threads);
64 struct thread_map *threads)
67 evlist->threads = threads;
62 perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus, struct thread_map *threads) argument
/external/valgrind/main/coregrind/
H A Dpub_core_gdbserver.h158 // address of VG_(threads) and various sizes
160 Addr32 threads; member in struct:__anon12443
176 Addr64 threads; member in struct:__anon12444
/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/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/compiler-rt/lib/asan/tests/
H A Dasan_interface_test.cc179 pthread_t threads[kManyThreadsNumThreads]; local
182 pthread_create(&threads[i], 0,
186 pthread_join(threads[i], 0);
/external/linux-tools-perf/
H A Dbuiltin-test.c267 struct thread_map *threads; local
278 threads = thread_map__new(-1, getpid());
279 if (threads == NULL) {
293 if (perf_evsel__open_per_thread(evsel, threads, false) < 0) {
318 perf_evsel__close_fd(evsel, 1, threads->nr);
322 thread_map__delete(threads);
331 struct thread_map *threads; local
344 threads = thread_map__new(-1, getpid());
345 if (threads == NULL) {
368 if (perf_evsel__open(evsel, cpus, threads, fals
[all...]

Completed in 2705 milliseconds

123