Enum sdl2_sys::SDL_ThreadPriority
source · [−]#[repr(u32)]
pub enum SDL_ThreadPriority {
SDL_THREAD_PRIORITY_LOW,
SDL_THREAD_PRIORITY_NORMAL,
SDL_THREAD_PRIORITY_HIGH,
SDL_THREAD_PRIORITY_TIME_CRITICAL,
}
Expand description
The SDL thread priority.
SDL will make system changes as necessary in order to apply the thread priority. Code which attempts to control thread state related to priority should be aware that calling SDL_SetThreadPriority may alter such state. SDL_HINT_THREAD_PRIORITY_POLICY can be used to control aspects of this behavior.
\note On many systems you require special privileges to set high or time critical priority.
Variants
SDL_THREAD_PRIORITY_LOW
SDL_THREAD_PRIORITY_NORMAL
SDL_THREAD_PRIORITY_HIGH
SDL_THREAD_PRIORITY_TIME_CRITICAL
Trait Implementations
sourceimpl Clone for SDL_ThreadPriority
impl Clone for SDL_ThreadPriority
sourcefn clone(&self) -> SDL_ThreadPriority
fn clone(&self) -> SDL_ThreadPriority
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SDL_ThreadPriority
impl Debug for SDL_ThreadPriority
sourceimpl Hash for SDL_ThreadPriority
impl Hash for SDL_ThreadPriority
impl Copy for SDL_ThreadPriority
impl Eq for SDL_ThreadPriority
impl StructuralEq for SDL_ThreadPriority
impl StructuralPartialEq for SDL_ThreadPriority
Auto Trait Implementations
impl RefUnwindSafe for SDL_ThreadPriority
impl Send for SDL_ThreadPriority
impl Sync for SDL_ThreadPriority
impl Unpin for SDL_ThreadPriority
impl UnwindSafe for SDL_ThreadPriority
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more