#[repr(C)]pub struct spa_thread_utils_methods {
pub version: u32,
pub create: Option<unsafe extern "C" fn(object: *mut c_void, props: *const spa_dict, start: Option<unsafe extern "C" fn(arg1: *mut c_void) -> *mut c_void>, arg: *mut c_void) -> *mut spa_thread>,
pub join: Option<unsafe extern "C" fn(object: *mut c_void, thread: *mut spa_thread, retval: *mut *mut c_void) -> c_int>,
pub get_rt_range: Option<unsafe extern "C" fn(object: *mut c_void, props: *const spa_dict, min: *mut c_int, max: *mut c_int) -> c_int>,
pub acquire_rt: Option<unsafe extern "C" fn(object: *mut c_void, thread: *mut spa_thread, priority: c_int) -> c_int>,
pub drop_rt: Option<unsafe extern "C" fn(object: *mut c_void, thread: *mut spa_thread) -> c_int>,
}
Expand description
thread utils
Fields§
§version: u32
§create: Option<unsafe extern "C" fn(object: *mut c_void, props: *const spa_dict, start: Option<unsafe extern "C" fn(arg1: *mut c_void) -> *mut c_void>, arg: *mut c_void) -> *mut spa_thread>
create a new thread that runs \a start with \a arg
join: Option<unsafe extern "C" fn(object: *mut c_void, thread: *mut spa_thread, retval: *mut *mut c_void) -> c_int>
stop and join a thread
get_rt_range: Option<unsafe extern "C" fn(object: *mut c_void, props: *const spa_dict, min: *mut c_int, max: *mut c_int) -> c_int>
get realtime priority range for threads created with \a props
acquire_rt: Option<unsafe extern "C" fn(object: *mut c_void, thread: *mut spa_thread, priority: c_int) -> c_int>
acquire realtime priority, a priority of -1 refers to the priority configured in the realtime module
drop_rt: Option<unsafe extern "C" fn(object: *mut c_void, thread: *mut spa_thread) -> c_int>
drop realtime priority
Trait Implementations§
Source§impl Clone for spa_thread_utils_methods
impl Clone for spa_thread_utils_methods
Source§fn clone(&self) -> spa_thread_utils_methods
fn clone(&self) -> spa_thread_utils_methods
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for spa_thread_utils_methods
impl Debug for spa_thread_utils_methods
Source§impl PartialEq for spa_thread_utils_methods
impl PartialEq for spa_thread_utils_methods
impl Copy for spa_thread_utils_methods
impl Eq for spa_thread_utils_methods
impl StructuralPartialEq for spa_thread_utils_methods
Auto Trait Implementations§
impl Freeze for spa_thread_utils_methods
impl RefUnwindSafe for spa_thread_utils_methods
impl Send for spa_thread_utils_methods
impl Sync for spa_thread_utils_methods
impl Unpin for spa_thread_utils_methods
impl UnwindSafe for spa_thread_utils_methods
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more