Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 - 21 of 21) sorted by relevance

/third_party/ltp/testcases/realtime/perf/latency/
H A Dpthread_cond_many.c55 int nthreads = 0; variable
186 void test_signal(long iter, long nthreads) in test_signal() argument
197 stats_container_init(&dat, iter * nthreads); in test_signal()
199 pt = malloc(sizeof(*pt) * nthreads); in test_signal()
204 for (j = 0; j < nthreads; j++) { in test_signal()
208 for (i = 0; i < (iter - 1) * nthreads; i += nthreads) { in test_signal()
209 for (j = 0, k = i; j < nthreads; j++, k++) { in test_signal()
219 for (j = 0; j < nthreads; j++) { in test_signal()
231 for (i = 0; i < iter * nthreads; in test_signal()
[all...]
/third_party/python/Tools/ccbench/
H A Dccbench.py187 def run_throughput_test(func, args, nthreads):
188 assert nthreads >= 1
197 if nthreads == 1:
221 for i in range(nthreads):
229 while len(ready) < nthreads:
234 start_cond.notify(nthreads)
245 nthreads = 1
247 while nthreads <= max_threads:
248 results = run_throughput_test(func, args, nthreads)
252 print("threads=%d: %d" % (nthreads, spee
[all...]
/third_party/node/deps/uv/src/
H A Dthreadpool.c37 static unsigned int nthreads; variable
46 return (nthreads + 1) / 2; in slow_work_thread_threshold()
170 if (nthreads == 0) in uv__threadpool_cleanup()
178 for (i = 0; i < nthreads; i++) in uv__threadpool_cleanup()
189 nthreads = 0; in uv__threadpool_cleanup()
198 nthreads = ARRAY_SIZE(default_threads); in init_threads()
201 nthreads = atoi(val); in init_threads()
202 if (nthreads == 0) in init_threads()
203 nthreads = 1; in init_threads()
204 if (nthreads > MAX_THREADPOOL_SIZ in init_threads()
[all...]
/third_party/libuv/test/
H A Dbenchmark-async.c35 unsigned int nthreads; member
75 static int test_async(int nthreads) { in test_async() argument
82 threads = calloc(nthreads, sizeof(threads[0])); in test_async()
85 for (i = 0; i < nthreads; i++) { in test_async()
87 ctx->nthreads = nthreads; in test_async()
100 for (i = 0; i < nthreads; i++) in test_async()
105 for (i = 0; i < nthreads; i++) { in test_async()
114 nthreads, in test_async()
H A Dbenchmark-async-pummel.c64 static int test_async_pummel(int nthreads) { in test_async_pummel() argument
71 tids = calloc(nthreads, sizeof(tids[0])); in test_async_pummel()
77 for (i = 0; i < nthreads; i++) in test_async_pummel()
87 for (i = 0; i < nthreads; i++) in test_async_pummel()
91 nthreads, in test_async_pummel()
/third_party/ltp/testcases/kernel/fs/fs_fill/
H A Dfs_fill.c24 static unsigned int nthreads; variable
68 pthread_t threads[nthreads]; in testrun()
74 for (i = 0; i < nthreads; i++) { in testrun()
90 for (i = 0; i < nthreads; i++) in testrun()
100 nthreads = tst_ncpus_conf() + 2; in setup()
101 workers = SAFE_MALLOC(sizeof(struct worker) * nthreads); in setup()
109 for (i = 0; i < nthreads; i++) { in setup()
115 tst_res(TINFO, "Running %i writer threads", nthreads); in setup()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/
H A Ds-c1.c104 int nthreads; member
147 int nthreads, ctl, i, tmp; in main() local
197 nthreads = 0; in main()
247 pthread_create(&th[nthreads], in main()
258 nthreads++; in main()
260 /* FAILED if error is != EAGAIN or nthreads > PTHREAD_THREADS_MAX */ in main()
268 if (nthreads > my_max) { in main()
297 /* add to the measure list if nthreads % resolution == 0 */ in main()
298 if ((nthreads % RESOLUTION) == 0) { in main()
307 m_tmp->nthreads in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
H A Ds-c.c175 int nthreads; member
285 * nthreads is the amount of threads to create.
290 static long do_threads_test(int nthreads, mes_t * measure) in do_threads_test() argument
317 th = (pthread_t *) calloc(nthreads, sizeof(pthread_t)); in do_threads_test()
322 output("%d", nthreads); in do_threads_test()
396 for (i = 0; i < nthreads; i++) { in do_threads_test()
444 while (tnum < nthreads) { in do_threads_test()
495 for (i = 0; i < nthreads; i++) { in do_threads_test()
538 output("%5d threads; %d.%09d s (%i loops)\n", nthreads, ts_cumul.tv_sec, in do_threads_test()
617 m_tmp->nthreads in main()
[all...]
/third_party/libuv/src/
H A Dthreadpool.c50 static unsigned int nthreads; variable
335 return (nthreads + 1) / 2; in slow_work_thread_threshold()
465 if (nthreads == 0) in uv__threadpool_cleanup()
473 for (i = 0; i < nthreads; i++) in uv__threadpool_cleanup()
484 nthreads = 0; in uv__threadpool_cleanup()
501 nthreads = ARRAY_SIZE(default_threads); in init_threads()
504 nthreads = atoi(val); in init_threads()
505 if (nthreads == 0) in init_threads()
506 nthreads = 1; in init_threads()
507 if (nthreads > MAX_THREADPOOL_SIZ in init_threads()
[all...]
/third_party/selinux/libselinux/src/
H A Dselinux_restorecon.c1095 size_t nthreads) in selinux_restorecon_common()
1168 if (nthreads != 1) { in selinux_restorecon_common()
1169 nthreads = 1; in selinux_restorecon_common()
1173 } else if (nthreads == 0) { in selinux_restorecon_common()
1177 nthreads = nproc; in selinux_restorecon_common()
1179 nthreads = 1; in selinux_restorecon_common()
1312 if (nthreads == 1) { in selinux_restorecon_common()
1322 threads = calloc(nthreads - 1, sizeof(*threads)); in selinux_restorecon_common()
1328 * Start (nthreads - 1) threads - the main thread is going to in selinux_restorecon_common()
1331 for (i = 0; i < nthreads in selinux_restorecon_common()
1093 selinux_restorecon_common(const char *pathname_orig, unsigned int restorecon_flags, size_t nthreads) selinux_restorecon_common() argument
1446 selinux_restorecon_parallel(const char *pathname_orig, unsigned int restorecon_flags, size_t nthreads) selinux_restorecon_parallel() argument
[all...]
/third_party/nghttp2/src/
H A Dh2load.cc110 nthreads(1), in Config()
2133 << config.nthreads << R"( in print_help()
2418 config.nthreads = n; in main()
2817 if (config.nthreads == 0) { in main()
2823 if (config.nthreads > std::thread::hardware_concurrency()) { in main()
2837 if (config.nclients < config.nthreads) { in main()
2848 if (config.rate < config.nthreads) { in main()
3112 workers.reserve(config.nthreads); in main()
3119 nreqs_per_thread = config.nreqs / config.nthreads; in main()
3120 nreqs_rem = config.nreqs % config.nthreads; in main()
[all...]
H A Dh2load.h93 size_t nthreads; member
/third_party/selinux/libselinux/include/selinux/
H A Drestorecon.h31 * @nthreads: specifies the number of threads to use (0 = use number of CPUs
39 size_t nthreads);
/third_party/python/Python/
H A Dtraceback.c1292 unsigned int nthreads; in _Py_DumpTracebackThreads() local
1330 nthreads = 0; in _Py_DumpTracebackThreads()
1334 if (nthreads != 0) in _Py_DumpTracebackThreads()
1336 if (nthreads >= MAX_NTHREADS) { in _Py_DumpTracebackThreads()
1346 nthreads++; in _Py_DumpTracebackThreads()
/device/soc/rockchip/rk3588/hardware/mpp/include/
H A Dmpi_enc_utils.h39 RK_S32 nthreads; member
/third_party/googletest/googletest/src/
H A Dgtest-port.cc202 size_t nthreads = 0;
204 if (info[i].p_tid != -1) nthreads++;
206 return nthreads;
/third_party/mesa3d/src/gtest/src/
H A Dgtest-port.cc209 int nthreads = 0; in GetThreadCount() local
212 nthreads++; in GetThreadCount()
214 return nthreads; in GetThreadCount()
/third_party/node/deps/googletest/src/
H A Dgtest-port.cc208 size_t nthreads = 0;
210 if (info[i].p_tid != -1) nthreads++;
212 return nthreads;
/device/soc/rockchip/rk3588/hardware/mpp/src/
H A Dmpi_enc_utils.c791 MpiEncMultiCtxInfo *ctxs = mpp_calloc(MpiEncMultiCtxInfo, args->nthreads); in hal_mpp_ctx_create()
/third_party/python/Lib/test/
H A Dtest_bz2.py503 nthreads = 10
508 threads = [threading.Thread(target=comp) for i in range(nthreads)]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_state_common.c1755 unsigned nthreads = 128; in r600_setup_scratch_area_for_shader() local
1758 unsigned size = align(itemsize * nthreads * num_pipes * num_ses * 4, 256); in r600_setup_scratch_area_for_shader()

Completed in 31 milliseconds