Searched defs:n_threads (Results 1 - 13 of 13) sorted by relevance
/external/valgrind/main/drd/tests/ |
H A D | atomic_var.c | 55 const int n_threads = 2; local 56 pthread_t tid[n_threads]; 61 for (i = 0; i < n_threads; i++)
|
H A D | pth_spinlock.c | 37 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 D | tsan_thread_wrappers_pthread.h | 503 //! 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 D | tsan_unittest.cpp | 5974 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 D | objects.c | 118 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 D | properties.c | 199 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 D | signals.c | 240 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 D | slice-test.c | 207 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 D | asan_noinst_test.cc | 292 const int n_threads = 3000; local 294 for (int i = 0; i < n_threads; i++) {
|
/external/valgrind/unittest/ |
H A D | posix_tests.cc | 454 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 D | thread_wrappers.h | 233 //! 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 D | thread_wrappers_pthread.h | 366 explicit Barrier(int n_threads) {CHECK(0 == pthread_barrier_init(&b_, 0, n_threads));} argument
|
H A D | racecheck_unittest.cc | 6679 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 305 milliseconds