Enum sdl2_sys::SDL_ThreadPriority
source · #[repr(u32)]pub enum SDL_ThreadPriority {
SDL_THREAD_PRIORITY_LOW = 0,
SDL_THREAD_PRIORITY_NORMAL = 1,
SDL_THREAD_PRIORITY_HIGH = 2,
SDL_THREAD_PRIORITY_TIME_CRITICAL = 3,
}
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 = 0
SDL_THREAD_PRIORITY_NORMAL = 1
SDL_THREAD_PRIORITY_HIGH = 2
SDL_THREAD_PRIORITY_TIME_CRITICAL = 3
Trait Implementations§
source§impl Clone for SDL_ThreadPriority
impl Clone for SDL_ThreadPriority
source§fn clone(&self) -> SDL_ThreadPriority
fn clone(&self) -> SDL_ThreadPriority
Returns a copy 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 Hash for SDL_ThreadPriority
impl Hash for SDL_ThreadPriority
source§impl PartialEq for SDL_ThreadPriority
impl PartialEq for SDL_ThreadPriority
source§fn eq(&self, other: &SDL_ThreadPriority) -> bool
fn eq(&self, other: &SDL_ThreadPriority) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_ThreadPriority
impl Eq for SDL_ThreadPriority
impl StructuralPartialEq for SDL_ThreadPriority
Auto Trait Implementations§
impl Freeze for SDL_ThreadPriority
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§
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