Home
last modified time | relevance | path

Searched refs:max_threads (Results 1 – 25 of 36) sorted by relevance

12

/third_party/glib/glib/
Dgthreadpool.c94 gint max_threads; member
252 if (pool->max_threads != -1 && pool->num_threads > (guint) pool->max_threads) in g_thread_pool_wait_for_new_task()
435 if (pool->max_threads != -1 && pool->num_threads >= (guint) pool->max_threads) in g_thread_pool_start_thread()
558 gint max_threads, in g_thread_pool_new() argument
566 g_return_val_if_fail (!exclusive || max_threads != -1, NULL); in g_thread_pool_new()
567 g_return_val_if_fail (max_threads >= -1, NULL); in g_thread_pool_new()
576 retval->max_threads = max_threads; in g_thread_pool_new()
629 while (retval->num_threads < (guint) retval->max_threads) in g_thread_pool_new()
736 gint max_threads, in g_thread_pool_set_max_threads() argument
747 g_return_val_if_fail (!real->pool.exclusive || max_threads != -1, FALSE); in g_thread_pool_set_max_threads()
[all …]
Dgthreadpool.h51 gint max_threads,
74 gint max_threads,
82 void g_thread_pool_set_max_unused_threads (gint max_threads);
/third_party/glib/gio/
Dgthreadedsocketservice.c56 int max_threads; member
100 if (data->service->priv->job_count-- == data->service->priv->max_threads) in g_threaded_socket_service_func()
124 if (++threaded->priv->job_count == threaded->priv->max_threads) in g_threaded_socket_service_incoming()
143 service->priv->max_threads = 10; in g_threaded_socket_service_init()
154 service->priv->max_threads, in g_threaded_socket_service_constructed()
184 g_value_set_int (value, service->priv->max_threads); in g_threaded_socket_service_get_property()
203 service->priv->max_threads = g_value_get_int (value); in g_threaded_socket_service_set_property()
272 g_threaded_socket_service_new (int max_threads) in g_threaded_socket_service_new() argument
275 "max-threads", max_threads, in g_threaded_socket_service_new()
Dgthreadedsocketservice.h77 GSocketService * g_threaded_socket_service_new (int max_threads);
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dviter.c20 viter_init (const colormap * map, const unsigned int max_threads, in viter_init() argument
25 map->colors) * max_threads); in viter_init()
42 viter_finalize (colormap * map, const unsigned int max_threads, in viter_finalize() argument
49 for (unsigned int t = 0; t < max_threads; t++) { in viter_finalize()
75 const unsigned int max_threads = omp_get_max_threads (); in viter_do_iteration() local
80 map->colors) * max_threads); in viter_do_iteration()
82 viter_init (map, max_threads, average_color); in viter_do_iteration()
108 viter_finalize (map, max_threads, average_color); in viter_do_iteration()
Dviter.h14 LIQ_PRIVATE void viter_init(const colormap *map, const unsigned int max_threads, viter_state state[…
16 LIQ_PRIVATE void viter_finalize(colormap *map, const unsigned int max_threads, const viter_state st…
/third_party/gstreamer/gstreamer/gst/
Dgsttaskpool.c358 guint max_threads; member
450 shared_pool->priv->max_threads, FALSE, error); in shared_prepare()
471 priv->max_threads = 1; in gst_shared_task_pool_init()
489 guint max_threads) in gst_shared_task_pool_set_max_threads() argument
499 g_thread_pool_set_max_threads (taskpool->pool, max_threads, NULL); in gst_shared_task_pool_set_max_threads()
500 pool->priv->max_threads = max_threads; in gst_shared_task_pool_set_max_threads()
519 ret = pool->priv->max_threads; in gst_shared_task_pool_get_max_threads()
Dgsttaskpool.h167 void gst_shared_task_pool_set_max_threads (GstSharedTaskPool *pool, guint max_threads);
/third_party/glib/tests/
Dasyncqueue-test.c181 gint max_threads = MAX_THREADS; in main() local
195 max_threads, max_unused_threads)); in main()
198 max_threads, in main()
207 for (i = 1; i <= max_threads; i++) { in main()
Dthreadpool-test.c250 guint max_threads; in test_thread_sort() local
256 max_threads = 1; in test_thread_sort()
258 max_threads = MAX_THREADS; in test_thread_sort()
271 max_threads, in test_thread_sort()
296 g_assert (g_thread_pool_get_max_threads (pool) == max_threads); in test_thread_sort()
/third_party/benchmark/src/
Dbenchmark_register.cc429 Benchmark* Benchmark::ThreadRange(int min_threads, int max_threads) { in ThreadRange() argument
431 BM_CHECK_GE(max_threads, min_threads); in ThreadRange()
433 AddRange(&thread_counts_, min_threads, max_threads, 2); in ThreadRange()
437 Benchmark* Benchmark::DenseThreadRange(int min_threads, int max_threads, in DenseThreadRange() argument
440 BM_CHECK_GE(max_threads, min_threads); in DenseThreadRange()
443 for (auto i = min_threads; i < max_threads; i += stride) { in DenseThreadRange()
446 thread_counts_.push_back(max_threads); in DenseThreadRange()
/third_party/json/benchmarks/thirdparty/benchmark/src/
Dbenchmark_register.cc413 Benchmark* Benchmark::ThreadRange(int min_threads, int max_threads) { in ThreadRange() argument
415 CHECK_GE(max_threads, min_threads); in ThreadRange()
417 AddRange(&thread_counts_, min_threads, max_threads, 2); in ThreadRange()
421 Benchmark* Benchmark::DenseThreadRange(int min_threads, int max_threads, in DenseThreadRange() argument
424 CHECK_GE(max_threads, min_threads); in DenseThreadRange()
427 for (auto i = min_threads; i < max_threads; i += stride) { in DenseThreadRange()
430 thread_counts_.push_back(max_threads); in DenseThreadRange()
/third_party/python/Tools/ccbench/
Dccbench.py240 def run_throughput_tests(max_threads): argument
247 while nthreads <= max_threads:
375 def run_latency_tests(max_threads): argument
381 while nthreads <= max_threads:
502 def run_bandwidth_tests(max_threads): argument
509 while nthreads <= max_threads:
/third_party/gstreamer/gstplugins_bad/ext/libde265/
Dlibde265-dec.c147 dec->max_threads = DEFAULT_MAX_THREADS; in gst_libde265_dec_init()
190 dec->max_threads = g_value_get_int (value); in gst_libde265_dec_set_property()
191 if (dec->max_threads) { in gst_libde265_dec_set_property()
192 GST_DEBUG_OBJECT (dec, "Max. threads set to %d", dec->max_threads); in gst_libde265_dec_set_property()
210 g_value_set_int (value, dec->max_threads); in gst_libde265_dec_get_property()
367 int threads = dec->max_threads; in gst_libde265_dec_start()
Dlibde265-dec.h52 int max_threads; member
/third_party/mesa3d/src/util/
Du_queue.c374 num_threads = MIN2(num_threads, queue->max_threads); in util_queue_adjust_num_threads()
443 queue->max_threads = num_threads; in util_queue_init()
460 queue->threads = (thrd_t*) calloc(queue->max_threads, sizeof(thrd_t)); in util_queue_init()
578 queue->num_threads < queue->max_threads) { in util_queue_add_job()
Du_queue.h215 unsigned max_threads; member
/third_party/gstreamer/gstplugins_base/gst/compositor/
Dcompositor.h138 guint max_threads; member
Dcompositor.c732 g_value_set_uint (value, self->max_threads); in gst_compositor_get_property()
758 self->max_threads = g_value_get_uint (value); in gst_compositor_set_property()
1193 if (compositor->max_threads == 0) in _negotiated_caps()
1196 n_threads = compositor->max_threads; in _negotiated_caps()
1668 self->max_threads = DEFAULT_MAX_THREADS; in gst_compositor_init()
/third_party/gstreamer/gst_libav/ext/libav/
Dgstavviddec.h69 int max_threads; member
/third_party/gstreamer/gstplugins_bad/ext/openjpeg/
Dgstopenjpegdec.h60 gint max_threads; /* atomic */ member
Dgstopenjpegdec.c329 g_atomic_int_set (&dec->max_threads, g_value_get_int (value)); in gst_openjpeg_dec_set_property()
348 g_value_set_int (value, g_atomic_int_get (&dec->max_threads)); in gst_openjpeg_dec_get_property()
1403 gint max_threads; in gst_openjpeg_dec_decode_stripe() local
1432 max_threads = g_atomic_int_get (&self->max_threads); in gst_openjpeg_dec_decode_stripe()
1433 if (max_threads > self->num_procs) in gst_openjpeg_dec_decode_stripe()
1434 max_threads = self->num_procs; in gst_openjpeg_dec_decode_stripe()
1435 if (!opj_codec_set_threads (dec, max_threads)) in gst_openjpeg_dec_decode_stripe()
1437 max_threads); in gst_openjpeg_dec_decode_stripe()
/third_party/grpc/src/core/lib/iomgr/
Dresource_quota.cc161 int max_threads; member
654 resource_quota->max_threads = INT_MAX; in grpc_resource_quota_create()
714 resource_quota->max_threads = new_max_threads; in grpc_resource_quota_set_max_threads()
858 if (rq->num_threads_allocated + thread_count <= rq->max_threads) { in grpc_resource_user_allocate_threads()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_gallium.c478 unsigned max_threads) in ir3_set_max_shader_compiler_threads() argument
485 util_queue_adjust_num_threads(&screen->compile_queue, max_threads); in ir3_set_max_shader_compiler_threads()
/third_party/mesa3d/src/gallium/include/pipe/
Dp_screen.h506 unsigned max_threads);

12