Home
last modified time | relevance | path

Searched refs:n_threads (Results 1 – 25 of 29) sorted by relevance

12

/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-converter.c132 guint n_threads; member
168 if (self->runner->n_done == self->runner->n_threads - 1) in gst_parallelized_task_thread_func()
190 if (self->runner->n_done == self->runner->n_threads - 1) in gst_parallelized_task_thread_func()
209 for (i = 1; i < self->n_threads; i++) { in gst_parallelized_task_runner_free()
224 gst_parallelized_task_runner_new (guint n_threads) in gst_parallelized_task_runner_new() argument
230 if (n_threads == 0) in gst_parallelized_task_runner_new()
231 n_threads = g_get_num_processors (); in gst_parallelized_task_runner_new()
234 self->n_threads = n_threads; in gst_parallelized_task_runner_new()
235 self->threads = g_new0 (GstParallelizedTaskThread, n_threads); in gst_parallelized_task_runner_new()
248 for (i = 0; i < n_threads; i++) { in gst_parallelized_task_runner_new()
[all …]
/third_party/ltp/testcases/kernel/syscalls/tgkill/
Dtgkill01.c24 static int n_threads = 10; variable
63 TST_CHECKPOINT_WAKE2(1, n_threads); in stop_threads()
65 for (i = 0; i < n_threads; i++) { in stop_threads()
81 for (i = 0; i < n_threads; i++) { in run()
106 if (tst_parse_int(str_threads, &n_threads, 1, INT_MAX)) in setup()
109 threads = SAFE_MALLOC(sizeof(*threads) * n_threads); in setup()
116 for (i = 0; i < n_threads; i++) in setup()
119 for (i = 0; i < n_threads; i++) in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D1-6.c50 static int n_threads; variable
100 pthread_t threads[n_threads]; in run_hp_threads()
108 it.it_value.tv_sec = n_threads / 20; in run_hp_threads()
109 it.it_value.tv_usec = (n_threads % 20) * 50000; in run_hp_threads()
123 for (i = 0; i < n_threads; i++) { in run_hp_threads()
139 for (i = 0; i < n_threads; i++) in run_hp_threads()
241 n_threads = get_ncpu(); in main()
242 if (n_threads == -1) { in main()
247 n_threads); in main()
250 n_threads = 1; in main()
/third_party/glib/glib/tests/
Dmutex.c189 guint n_threads = GPOINTER_TO_UINT (data); in test_mutex_perf() local
196 g_assert (n_threads <= G_N_ELEMENTS (threads)); in test_mutex_perf()
198 for (i = 0; n_threads > 0 && i < n_threads - 1; i++) in test_mutex_perf()
209 for (i = 0; n_threads > 0 && i < n_threads - 1; i++) in test_mutex_perf()
Drec-mutex.c199 gint n_threads; in test_mutex_perf() local
204 n_threads = c / 256; in test_mutex_perf()
207 for (i = 0; i < n_threads - 1; i++) in test_mutex_perf()
218 for (i = 0; i < n_threads - 1; i++) in test_mutex_perf()
Dspawn-multithreaded.c36 guint n_threads; in multithreaded_test_run() local
39 n_threads = MIN (g_get_num_processors () * 2, 64); in multithreaded_test_run()
41 for (i = 0; i < n_threads; i++) in multithreaded_test_run()
49 for (i = 0; i < n_threads; i++) in multithreaded_test_run()
/third_party/glib/gio/tests/
Dgdbus-proxy-threads.c198 int n_threads; in test_proxy() local
201 n_threads = N_THREADS_MAX; in test_proxy()
203 n_threads = N_THREADS; in test_proxy()
216 for (i = 0; i < n_threads; i++) in test_proxy()
224 for (i = 0; i < n_threads; i++) in test_proxy()
/third_party/glib/tests/
Dslice-test.c213 guint n_threads = 1; in main() local
216 n_threads = g_ascii_strtoull (argv[1], NULL, 10); in main()
275 …hreads allocating random blocks <= %u bytes with seed=%s using %s%s\n", n_threads, prime_size, str… in main()
277 threads = g_alloca (sizeof(GThread*) * n_threads); in main()
279 for (i = 0; i < n_threads; i++) in main()
283 for (i = 0; i < n_threads; i++) in main()
286 for (i = 0; i < n_threads; i++) in main()
/third_party/libunwind/src/coredump/
D_UCD_get_threadinfo_prstatus.c65 memcpy(&ui->threads[ui->n_threads], desc, sizeof(struct PRSTATUS_STRUCT)); in _save_thread_notes()
66 ++ui->n_threads; in _save_thread_notes()
105 size_t new_size = sizeof(struct PRSTATUS_STRUCT) * (ui->n_threads + thread_count); in _UCD_get_threadinfo()
D_UCD_create.c215 if (ui->n_threads == 0) in _UCD_create()
232 return ui->n_threads; in _UCD_get_num_threads()
237 if (n >= 0 && n < ui->n_threads) in _UCD_select_thread()
D_UCD_internal.h94 int n_threads; member
/third_party/glib/tests/gobject/
Dperformance-threaded.c200 static int n_threads = 0; variable
207 {"threads", 't', 0, G_OPTION_ARG_INT, &n_threads,
294 if (n_threads == 0) { in run_test()
301 threads = g_new (GThread *, n_threads); in run_test()
302 for (i = 0; i < n_threads; i++) { in run_test()
308 for (i = 0; i < n_threads; i++) { in run_test()
/third_party/glib/tests/refcount/
Dobjects.c121 const guint n_threads = 5; in main() local
133 for (i = 0; i < n_threads; i++) { in main()
149 for (i = 0; i < 2 * n_threads; i++) { in main()
Dproperties3.c161 const gint n_threads = 5; in main() local
175 for (i = 0; i < n_threads; i++) { in main()
187 for (i = 0; i < n_threads; i++) { in main()
Dsignals.c262 const gint n_threads = 1; in main() local
278 for (i = 0; i < n_threads; i++) { in main()
294 for (i = 0; i < 2 * n_threads; i++) { in main()
/third_party/gstreamer/gstplugins_base/gst/videoconvert/
Dgstvideoconvert.h59 gint n_threads; member
Dgstvideoconvert.c478 space->n_threads, NULL)); in gst_video_convert_set_info()
608 space->n_threads = DEFAULT_PROP_N_THREADS; in gst_video_convert_init()
648 csp->n_threads = g_value_get_uint (value); in gst_video_convert_set_property()
693 g_value_set_uint (value, csp->n_threads); in gst_video_convert_get_property()
/third_party/gstreamer/gstplugins_base/gst/videoscale/
Dgstvideoscale.h91 gint n_threads; member
Dgstvideoscale.c303 videoscale->n_threads = DEFAULT_PROP_N_THREADS; in gst_video_scale_init()
365 vscale->n_threads = g_value_get_uint (value); in gst_video_scale_set_property()
423 g_value_set_uint (value, vscale->n_threads); in gst_video_scale_get_property()
630 GST_VIDEO_CONVERTER_OPT_THREADS, G_TYPE_UINT, videoscale->n_threads, in gst_video_scale_set_info()
/third_party/ffmpeg/libavfilter/
Dvf_libvmaf.c65 int n_threads; member
84 …number of threads to be used when computing vmaf.", OFFSET(n_threads), AV_OPT_TYPE_IN…
177 s->n_threads, s->n_subsample, s->enable_conf_interval); in compute_vmaf_score()
/third_party/gstreamer/gst_libav/ext/libav/
Dgstavutils.c466 static gsize n_threads = 0; in gst_ffmpeg_auto_max_threads() local
467 if (g_once_init_enter (&n_threads)) { in gst_ffmpeg_auto_max_threads()
491 g_once_init_leave (&n_threads, n); in gst_ffmpeg_auto_max_threads()
494 return (int) (n_threads); in gst_ffmpeg_auto_max_threads()
/third_party/benchmark/src/
Dbenchmark.cc119 int thread_i, int n_threads, internal::ThreadTimer* timer, in State() argument
131 threads(n_threads), in State()
/third_party/json/benchmarks/thirdparty/benchmark/src/
Dbenchmark.cc294 int n_threads, internal::ThreadTimer* timer, in State() argument
308 threads(n_threads), in State()
/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc689 const std::size_t n_threads = 128; in TEST() local
691 std::vector<std::set<std::string>> thread_failures(n_threads); in TEST()
692 for (std::size_t i = 0; i != n_threads; ++i) { in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc689 const std::size_t n_threads = 128; in TEST() local
691 std::vector<std::set<std::string>> thread_failures(n_threads); in TEST()
692 for (std::size_t i = 0; i != n_threads; ++i) { in TEST()

12