pub struct SDL_Mutex { /* private fields */ }Expand description
A means to serialize access to a resource between threads.
Mutexes (short for “mutual exclusion”) are a synchronization primitive that allows exactly one thread to proceed at a time.
Wikipedia has a thorough explanation of the concept:
https://en.wikipedia.org/wiki/Mutex
§Availability
This struct is available since SDL 3.2.0.
Auto Trait Implementations§
impl Freeze for SDL_Mutex
impl RefUnwindSafe for SDL_Mutex
impl Send for SDL_Mutex
impl Sync for SDL_Mutex
impl Unpin for SDL_Mutex
impl UnwindSafe for SDL_Mutex
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