Trait gstreamer_rtsp_server::RTSPThreadPoolExt [−][src]
pub trait RTSPThreadPoolExt { fn get_max_threads(&self) -> i32; fn set_max_threads(&self, max_threads: i32); fn connect_property_max_threads_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required Methods
fn get_max_threads(&self) -> i32
Get the maximum number of threads used for client connections.
See RTSPThreadPoolExt::set_max_threads
.
Returns
the maximum number of threads.
fn set_max_threads(&self, max_threads: i32)
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.
max_threads
maximum threads
fn connect_property_max_threads_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<RTSPThreadPool> + IsA<Object>> RTSPThreadPoolExt for O