#[repr(C)]pub struct k_mutex {
pub wait_q: _wait_q_t,
pub owner: *mut k_thread,
pub lock_count: u32,
pub owner_orig_prio: i32,
}
Expand description
Mutex Structure @ingroup mutex_apis
Fields§
§wait_q: _wait_q_t
Mutex wait queue
owner: *mut k_thread
Mutex owner
lock_count: u32
Current lock count
owner_orig_prio: i32
Original thread priority
Auto Trait Implementations§
impl Freeze for k_mutex
impl RefUnwindSafe for k_mutex
impl !Send for k_mutex
impl !Sync for k_mutex
impl Unpin for k_mutex
impl UnwindSafe for k_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