/third_party/mesa3d/src/gallium/tests/unit/ |
H A D | pipe_barrier_test.c | 46 #define NUM_THREADS 10 macro 50 static thrd_t threads[NUM_THREADS]; 52 static int thread_ids[NUM_THREADS]; 84 CHECK(p_atomic_read(&waiting) == NUM_THREADS); in thread_function() 113 util_barrier_init(&barrier, NUM_THREADS); in main() 115 for (i = 0; i < NUM_THREADS; i++) { in main() 120 for (i = 0; i < NUM_THREADS; i++ ) { in main() 124 CHECK(p_atomic_read(&proceeded) == NUM_THREADS); in main()
|
/third_party/mesa3d/src/intel/vulkan/tests/ |
H A D | block_pool_no_free.c | 29 #define NUM_THREADS 16 macro 39 } jobs[NUM_THREADS]; 79 unsigned next[NUM_THREADS]; in validate_monotonic() 87 for (unsigned i = 0; i < NUM_THREADS; i++) { in validate_monotonic() 125 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test() 131 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test() 135 int32_t *block_ptrs[NUM_THREADS]; in run_test() 136 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test() 141 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
|
H A D | state_pool_no_free.c | 29 #define NUM_THREADS 16 macro 38 } jobs[NUM_THREADS]; 68 pthread_barrier_init(&barrier, NULL, NUM_THREADS); in run_test() 70 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test() 76 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test() 80 unsigned next[NUM_THREADS]; in run_test() 88 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test()
|
H A D | state_pool_free_list_only.c | 29 #define NUM_THREADS 8 macro 54 struct anv_state states[NUM_THREADS * STATES_PER_THREAD]; in main() 55 for (unsigned i = 0; i < NUM_THREADS * STATES_PER_THREAD; i++) { in main() 60 for (unsigned i = 0; i < NUM_THREADS * STATES_PER_THREAD; i++) in main()
|
H A D | state_pool_test_helper.h | 30 } jobs[NUM_THREADS]; 61 pthread_barrier_init(&barrier, NULL, NUM_THREADS); in run_state_pool_test() 63 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_state_pool_test() 69 for (unsigned i = 0; i < NUM_THREADS; i++) in run_state_pool_test()
|
H A D | state_pool.c | 29 #define NUM_THREADS 8 macro
|
/third_party/libuv/test/ |
H A D | benchmark-thread.c | 28 #define NUM_THREADS (20 * 1000) macro 48 for (i = 0; i < NUM_THREADS; i++) { in BENCHMARK_IMPL() 58 ASSERT_EQ(num_threads, NUM_THREADS); in BENCHMARK_IMPL() 61 NUM_THREADS, duration, NUM_THREADS / duration); in BENCHMARK_IMPL()
|
/third_party/curl/tests/libtest/ |
H A D | lib3026.c | 29 #define NUM_THREADS 100 macro 55 CURLcode results[NUM_THREADS]; in test() 56 curl_win_thread_handle_t ths[NUM_THREADS]; in test() 57 unsigned tid_count = NUM_THREADS, i; in test() 128 CURLcode results[NUM_THREADS]; in test() 129 pthread_t tids[NUM_THREADS]; in test() 130 unsigned tid_count = NUM_THREADS, i; in test()
|
/third_party/ltp/testcases/kernel/mem/mtest07/ |
H A D | mallocstress.c | 27 #define NUM_THREADS 60 macro 161 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc() 167 TST_CHECKPOINT_WAKE2(0, NUM_THREADS); in stress_malloc() 170 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc() 185 thread_id = SAFE_MALLOC(sizeof(pthread_t) * NUM_THREADS); in setup()
|
/third_party/python/Lib/test/ |
H A D | fork_wait.py | 20 NUM_THREADS = 4 variable 51 for i in range(NUM_THREADS): 58 while len(self.alive) < NUM_THREADS: 64 self.assertEqual(a, list(range(NUM_THREADS)))
|
H A D | test_threadedtempfile.py | 3 in each of NUM_THREADS threads, recording the number of successes and 10 By default, NUM_THREADS == 20 and FILES_PER_THREAD == 50. This is enough to 26 NUM_THREADS = 20 variable 53 threads = [TempFileGreedy() for i in range(NUM_THREADS)] 63 self.assertEqual(ok, NUM_THREADS * FILES_PER_THREAD)
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/ |
H A D | 3-1.c | 24 #define NUM_THREADS 5 macro 34 pthread_t new_threads[NUM_THREADS]; in main() 44 /* Create [NUM_THREADS] number of threads with the same attribute in main() 46 for (i = 0; i < NUM_THREADS; i++) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
H A D | 5-1.c | 24 #define NUM_THREADS 5 macro 39 for (i = 1; i < NUM_THREADS + 1; i++) { in main()
|
/third_party/ltp/testcases/realtime/func/pi-tests/ |
H A D | sbrk_mutex.c | 23 * Create NUM_THREADS to walk through an array of malloc'd pthread mutexes. 49 #define NUM_THREADS 50 macro 133 for (t = 0; t < NUM_THREADS; t++) { in main()
|
/third_party/skia/experimental/tools/ |
H A D | pdf-comparison.py | 49 NUM_THREADS = int(os.environ.get('PDF_COMPARISON_THREADS', 40)) variable 182 jobs = [[arg for j, arg in enumerate(arglist) if j % NUM_THREADS == i] 183 for i in range(NUM_THREADS)]
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | tsmthred.cpp | 1325 static constexpr int NUM_THREADS = 4; in TestIncDec() local 1327 TestIncDecThread threads[NUM_THREADS]; in TestIncDec() 1334 assertEquals(WHERE, NUM_THREADS, gIncDecCounter); in TestIncDec() 1356 static constexpr int NUM_THREADS = 4; in Test20104() local 1357 Test20104Thread threads[NUM_THREADS]; in Test20104()
|