GstRtspServer.RTSPThreadPool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The maximum amount of threads to use for client connections (0 = only mainloop, -1 = unlimited) |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GstRtspServer.RTSPThreadPool(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The thread pool structure.
- classmethod cleanup()[source]¶
Wait for all tasks to be stopped and free all allocated resources. This is mainly used in test suites to ensure proper cleanup of internal
GstRtsp.data
structures.
- classmethod new()[source]¶
- Returns:
- Return type:
Create a new
GstRtspServer.RTSPThreadPool
instance.
- get_max_threads()[source]¶
- Returns:
the maximum number of threads.
- Return type:
Get the maximum number of threads used for client connections. See
GstRtspServer.RTSPThreadPool.set_max_threads
().
- get_thread(type, ctx)[source]¶
- Parameters:
- Returns:
a new
GstRtspServer.RTSPThread
,GstRtspServer.RTSPThread.stop
() after usage- Return type:
Get a new
GstRtspServer.RTSPThread
for type and ctx.
- set_max_threads(max_threads)[source]¶
- Parameters:
max_threads (
int
) – maximum threads
Set the maximum threads used by the pool to handle client requests. A value of 0 will use the pool mainloop, a value of -1 will use an unlimited number of threads.
- do_configure_thread(thread, ctx) virtual¶
- Parameters:
thread (
GstRtspServer.RTSPThread
) –ctx (
GstRtspServer.RTSPContext
) –
configure a thread object. this vmethod is called when a new thread has been created and should be configured.
- do_get_thread(type, ctx) virtual¶
- Parameters:
- Returns:
a new
GstRtspServer.RTSPThread
,GstRtspServer.RTSPThread.stop
() after usage- Return type:
Get a new
GstRtspServer.RTSPThread
for type and ctx.
- do_thread_enter(thread) virtual¶
- Parameters:
thread (
GstRtspServer.RTSPThread
) –
called from the thread when it is entered
- do_thread_leave(thread) virtual¶
- Parameters:
thread (
GstRtspServer.RTSPThread
) –
called from the thread when it is left