Gst.SharedTaskPool¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | r | 
Class Details¶
- class Gst.SharedTaskPool(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - The - Gst.SharedTaskPoolobject.- New in version 1.20. - classmethod new()[source]¶
- Returns:
- a new - Gst.SharedTaskPool.- Gst.Object.unref() after usage.
- Return type:
 - 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.SharedTaskPoolto 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.- New in version 1.20. 
 - get_max_threads()[source]¶
- Returns:
- the maximum number of threads self is configured to spawn 
- Return type:
 - New in version 1.20. 
 - set_max_threads(max_threads)[source]¶
- Parameters:
- max_threads ( - int) – Maximum number of threads to spawn.
 - Update the maximal number of threads the self may spawn. When the maximal number of threads is reduced, existing threads are not immediately shut down, see - GLib.ThreadPool.set_max_threads().- Setting max_threads to 0 effectively freezes the pool. - New in version 1.20.