Struct ocl::ReadGuard[][src]

pub struct ReadGuard<V> { /* fields omitted */ }

Allows access to the data contained within a lock just like a mutex guard.

Methods

impl<V> ReadGuard<V>
[src]

Returns a reference to the event previously set using create_release_event on the FutureGuard which preceded this ReadGuard. The event can be manually 'triggered' by calling ...set_complete()... or used normally (as a wait event) by subsequent commands. If the event is not manually completed it will be automatically set complete when this ReadGuard is dropped.

Triggers the release event and releases the lock held by this ReadGuard before returning the original OrderLock.

Trait Implementations

impl<V: Debug> Debug for ReadGuard<V>
[src]

Formats the value using the given formatter. Read more

impl<V> Deref for ReadGuard<V>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<V> Drop for ReadGuard<V>
[src]

Executes the destructor for this type. Read more

impl<V> OrderGuard<V> for ReadGuard<V>
[src]

Auto Trait Implementations

impl<V> Send for ReadGuard<V> where
    V: Send

impl<V> Sync for ReadGuard<V> where
    V: Send