Class: Gst::SharedTaskPool
- Defined in:
- (unknown)
Overview
The Gst::SharedTaskPoolClass object.
Instance Method Summary collapse
-
#initialize ⇒ Gst::TaskPool
constructor
Create a new shared task pool.
-
#max_threads ⇒ Integer
The maximum number of threads pool is configured to spawn.
-
#max_threads=(max_threads) ⇒ nil
Update the maximal number of threads the pool may spawn.
Methods inherited from TaskPool
#cleanup, #dispose_handle, #join, #prepare, #push
Methods inherited from Object
#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref
Constructor Details
#initialize ⇒ Gst::TaskPool
Create a new shared task pool. The shared task pool will queue tasks on a maximum number of threads, 1 by default.
Do not use a Gst::SharedTaskPool to manage potentially inter-dependent tasks such as pad tasks, as having one task waiting on another to return before returning would cause obvious deadlocks if they happen to share the same thread.
Instance Method Details
#max_threads ⇒ Integer
Returns the maximum number of threads pool is configured to spawn.
#max_threads=(max_threads) ⇒ nil
Update the maximal number of threads the pool may spawn. When the maximal number of threads is reduced, existing threads are not immediately shut down, see g_thread_pool_set_max_threads().
Setting max_threads to 0 effectively freezes the pool.