Home
last modified time | relevance | path

Searched refs:NUM_THREADS (Results 1 – 25 of 26) sorted by relevance

12

/third_party/mesa3d/src/gallium/tests/unit/
Dpipe_barrier_test.c46 #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/
Dblock_pool_no_free.c29 #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()
123 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test()
129 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
133 int32_t *block_ptrs[NUM_THREADS]; in run_test()
134 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
139 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
Dstate_pool_no_free.c29 #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()
Dstate_pool_free_list_only.c29 #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()
Dstate_pool_test_helper.h30 } 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()
Dstate_pool.c29 #define NUM_THREADS 8 macro
/third_party/libuv/test/
Dbenchmark-thread.c28 #define NUM_THREADS (20 * 1000) macro
48 for (i = 0; i < NUM_THREADS; i++) { in BENCHMARK_IMPL()
58 ASSERT(num_threads == NUM_THREADS); in BENCHMARK_IMPL()
61 NUM_THREADS, duration, NUM_THREADS / duration); in BENCHMARK_IMPL()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestsem.c21 #define NUM_THREADS 10 macro
81 SDL_Thread *threads[NUM_THREADS]; in main()
104 SDL_Log("Running %d threads, semaphore value = %d\n", NUM_THREADS, in main()
107 for (i = 0; i < NUM_THREADS; ++i) { in main()
119 for (i = 0; i < NUM_THREADS; ++i) { in main()
/third_party/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c27 #define NUM_THREADS 60 macro
156 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
162 TST_CHECKPOINT_WAKE2(0, NUM_THREADS); in stress_malloc()
165 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
180 thread_id = SAFE_MALLOC(sizeof(pthread_t) * NUM_THREADS); in setup()
/third_party/curl/tests/libtest/
Dlib1541.c40 #define NUM_THREADS 67 macro
112 pthread_t tid[NUM_THREADS]; in test()
115 struct initurl url[NUM_THREADS]; in test()
127 for(i = 0; i< NUM_THREADS; i++) { in test()
140 for(i = 0; i< NUM_THREADS; i++) { in test()
/third_party/mesa3d/src/util/tests/sparse_array/
Dmulti_threaded.c32 #define NUM_THREADS 16 macro
58 thrd_t threads[NUM_THREADS]; in run_test()
59 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test()
64 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test()
/third_party/grpc/test/core/gprpp/
Dthd_test.cc32 #define NUM_THREADS 100 macro
55 grpc_core::Thread thds[NUM_THREADS]; in test1()
59 t.n = NUM_THREADS; in test1()
82 grpc_core::Thread thds[NUM_THREADS]; in test2()
/third_party/glib/glib/tests/
Dgwakeuptest.c88 #define NUM_THREADS 50 macro
92 static struct context contexts[NUM_THREADS];
93 static GThread *threads[NUM_THREADS];
161 next_ctx = g_test_rand_int_range (0, NUM_THREADS); in dispatch_token()
233 for (i = 0; i < NUM_THREADS; i++) in test_threaded()
247 for (i = 0; i < NUM_THREADS; i++) in test_threaded()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/
D3-1.c24 #define NUM_THREADS 5 macro
34 pthread_t new_threads[NUM_THREADS]; in main()
46 for (i = 0; i < NUM_THREADS; i++) { in main()
/third_party/python/Lib/test/
Dfork_wait.py20 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)))
Dtest_threadedtempfile.py25 NUM_THREADS = 20 variable
52 threads = [TempFileGreedy() for i in range(NUM_THREADS)]
62 self.assertEqual(ok, NUM_THREADS * FILES_PER_THREAD)
/third_party/grpc/test/core/surface/
Dconcurrent_connectivity_test.cc50 #define NUM_THREADS 10 macro
52 #define NUM_THREADS 100 macro
185 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_connectivity_test()
210 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_connectivity_test()
237 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_connectivity_test()
295 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_watches_with_short_timeouts_test()
/third_party/flutter/engine/flutter/third_party/txt/tests/old/stresstest/
DMultithreadTest.cpp38 constexpr int NUM_THREADS = 10; variable
99 threads.reserve(NUM_THREADS); in TEST()
100 for (int i = 0; i < NUM_THREADS; ++i) { in TEST()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D5-1.c24 #define NUM_THREADS 5 macro
39 for (i = 1; i < NUM_THREADS + 1; i++) { in main()
/third_party/grpc/test/core/gpr/
Dtls_test.cc32 #define NUM_THREADS 100 macro
51 grpc_core::Thread threads[NUM_THREADS]; in main()
/third_party/ltp/testcases/realtime/func/pi-tests/
Dsbrk_mutex.c49 #define NUM_THREADS 50 macro
133 for (t = 0; t < NUM_THREADS; t++) { in main()
/third_party/gstreamer/gstreamer/tests/check/gst/
Dgstbus.c32 #define NUM_THREADS 10 macro
57 guint message_ids[NUM_THREADS]; in pull_messages()
60 for (i = 0; i < NUM_THREADS; i++) in pull_messages()
77 g_return_if_fail (_t < NUM_THREADS); in pull_messages()
83 for (i = 0; i < NUM_THREADS; i++) in pull_messages()
89 GThread *threads[NUM_THREADS]; in GST_START_TEST()
94 for (i = 0; i < NUM_THREADS; i++) in GST_START_TEST()
98 for (i = 0; i < NUM_THREADS; i++) in GST_START_TEST()
/third_party/skia/experimental/tools/
Dpdf-comparison.py49 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/glib/gio/tests/
Dgdbus-connection.c1113 #define NUM_THREADS 50 macro
1168 GThread *pool[NUM_THREADS]; in test_connection_serials()
1186 for (i = 0; i < NUM_THREADS; i++) in test_connection_serials()
1190 for (i = 0; i < NUM_THREADS; i++) in test_connection_serials()
1199 g_assert_cmpint (g_dbus_connection_get_last_serial (c), ==, 3 + NUM_THREADS); in test_connection_serials()
/third_party/icu/icu4c/source/test/intltest/
Dtsmthred.cpp1324 static constexpr int NUM_THREADS = 4; in TestIncDec() local
1326 TestIncDecThread threads[NUM_THREADS]; in TestIncDec()
1333 assertEquals(WHERE, NUM_THREADS, gIncDecCounter); in TestIncDec()
1355 static constexpr int NUM_THREADS = 4; in Test20104() local
1356 Test20104Thread threads[NUM_THREADS]; in Test20104()

12