[][src]Struct mmal_sys::VCOS_EVENT_WAITER_T

#[repr(C)]
pub struct VCOS_EVENT_WAITER_T { /* fields omitted */ }

\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]

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]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]