Struct mariadb_sys::MDL_wait
source · #[repr(C)]pub struct MDL_wait {
pub m_LOCK_wait_status: mysql_mutex_t,
pub m_COND_wait_status: mysql_cond_t,
pub m_wait_status: Type,
}
Expand description
A reliable way to wait on an MDL lock.
Fields§
§m_LOCK_wait_status: mysql_mutex_t
Condvar which is used for waiting until this context’s pending request can be satisfied or this thread has to perform actions to resolve a potential deadlock (we subscribe to such notification by adding a ticket corresponding to the request to an appropriate queue of waiters).
m_COND_wait_status: mysql_cond_t
§m_wait_status: Type
Implementations§
source§impl MDL_wait
impl MDL_wait
pub unsafe fn set_status(&mut self, result_arg: Type) -> bool
pub unsafe fn get_status(&mut self) -> Type
pub unsafe fn reset_status(&mut self)
pub unsafe fn timed_wait( &mut self, owner: *mut MDL_context_owner, abs_timeout: *mut timespec, signal_timeout: bool, wait_state_name: *const PSI_stage_info ) -> Type
pub unsafe fn new() -> Self
pub unsafe fn destruct(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for MDL_wait
impl !Send for MDL_wait
impl !Sync for MDL_wait
impl Unpin for MDL_wait
impl UnwindSafe for MDL_wait
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