Searched defs:n_threads (Results 1 - 13 of 13) sorted by relevance

/external/valgrind/main/drd/tests/
H A Datomic_var.c55 const int n_threads = 2; local
56 pthread_t tid[n_threads];
61 for (i = 0; i < n_threads; i++)
H A Dpth_spinlock.c37 const int n_threads = 10; local
38 pthread_t tid[n_threads];
43 pthread_barrier_init(&s_barrier, 0, n_threads);
45 for (i = 0; i < n_threads; i++)
47 for (i = 0; i < n_threads; i++)
51 if (s_counter == n_threads * s_iterations)
55 s_counter, n_threads * s_iterations);
H A Dtsan_thread_wrappers_pthread.h503 //! Create n_threads threads, but do not start.
504 explicit ThreadPool(int n_threads) argument
506 for (int i = 0; i < n_threads; i++) {
556 explicit Barrier(int n_threads) {CHECK(0 == pthread_barrier_init(&b_, 0, n_threads));} argument
H A Dtsan_unittest.cpp5974 const int n_threads = 3; member in namespace:test125
5976 int GLOB[n_threads];
5991 for (int i = 0; i < n_threads; i++) {
/external/bluetooth/glib/tests/refcount/
H A Dobjects.c118 const guint n_threads = 5; local
132 for (i = 0; i < n_threads; i++) {
148 for (i = 0; i < 2 * n_threads; i++) {
H A Dproperties.c199 const gint n_threads = 5; local
208 for (i = 0; i < n_threads; i++) {
222 for (i = 0; i < n_threads; i++) {
237 for (i = 0; i < n_threads; i++) {
246 for (i = 0; i < n_threads; i++) {
H A Dsignals.c240 const gint n_threads = 1; local
258 for (i = 0; i < n_threads; i++) {
274 for (i = 0; i < 2 * n_threads; i++) {
/external/bluetooth/glib/tests/
H A Dslice-test.c207 g_print ("Usage: slice-test [n_threads] [G|S|M|O][f][c][~] [maxblocksize] [seed]\n");
216 guint n_threads = 1; local
219 n_threads = g_ascii_strtoull (argv[1], NULL, 10);
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);
284 for (i = 0; i < n_threads; i++)
289 for (i = 0; i < n_threads; i++)
292 for (i = 0; i < n_threads; i++)
/external/compiler-rt/lib/asan/tests/
H A Dasan_noinst_test.cc292 const int n_threads = 3000; local
294 for (int i = 0; i < n_threads; i++) {
/external/valgrind/unittest/
H A Dposix_tests.cc454 const int n_threads = 3; member in namespace:test125
456 int GLOB[n_threads];
463 CHECK(my_num < n_threads);
473 for (int i = 0; i < n_threads; i++) {
H A Dthread_wrappers.h233 //! Create n_threads threads, but do not start.
234 explicit ThreadPool(int n_threads) argument
236 for (int i = 0; i < n_threads; i++) {
H A Dthread_wrappers_pthread.h366 explicit Barrier(int n_threads) {CHECK(0 == pthread_barrier_init(&b_, 0, n_threads));} argument
H A Dracecheck_unittest.cc6679 void RunThreads(int n_threads, void (*f)(void)) { argument
6681 barrier = new Barrier(n_threads);
6683 array = new int[(kArrayLen + 64) * n_threads + (1 << 22)];
6685 MyThread **t = new MyThread*[n_threads];
6686 for (int i = 0; i < n_threads; i++) t[i] = new MyThread(NoRaceWorker);
6687 for (int i = 0; i < n_threads; i++) t[i]->Start();
6688 for (int i = 0; i < n_threads; i++) t[i]->Join();
6689 for (int i = 0; i < n_threads; i++) delete t[i];

Completed in 341 milliseconds