[−][src]Struct mmal_sys::VCOS_EVENT_WAITER_T
\file
This provides event flags (as per Nucleus Event Groups) based on a mutex, a semaphore (per waiting thread) and a timer (per waiting thread).
The data structure is a 32 bit unsigned int (the current set of flags) and a linked list of clients waiting to be 'satisfied'.
The mutex merely locks access to the data structure. If a client calls vcos_event_flags_get() and the requested bits are not already present, it then sleeps on its per-thread semaphore after adding this semaphore to the queue waiting. It also sets up a timer.
The per-thread semaphore and timer are actually stored in the thread context (joinable thread). In future it may become necessary to support non-VCOS threads by using thread local storage to create these objects and associate them with the thread.
Trait Implementations
impl Clone for VCOS_EVENT_WAITER_T
[src]
fn clone(&self) -> VCOS_EVENT_WAITER_T
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VCOS_EVENT_WAITER_T
[src]
impl Debug for VCOS_EVENT_WAITER_T
[src]
Auto Trait Implementations
impl Send for VCOS_EVENT_WAITER_T
impl Unpin for VCOS_EVENT_WAITER_T
impl Sync for VCOS_EVENT_WAITER_T
impl UnwindSafe for VCOS_EVENT_WAITER_T
impl RefUnwindSafe for VCOS_EVENT_WAITER_T
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,