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

source

pub unsafe fn set_status(&mut self, result_arg: Type) -> bool

source

pub unsafe fn get_status(&mut self) -> Type

source

pub unsafe fn reset_status(&mut self)

source

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

source

pub unsafe fn new() -> Self

source

pub unsafe fn destruct(&mut self)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.