Struct ocl::async::WriteGuard [−][src]
pub struct WriteGuard<V> { /* fields omitted */ }
Allows access to the data contained within just like a mutex guard.
Methods
impl<V> WriteGuard<V>
[src]
impl<V> WriteGuard<V>
pub fn release_event(guard: &WriteGuard<V>) -> Option<&Event>
[src]
pub fn release_event(guard: &WriteGuard<V>) -> Option<&Event>
Returns a reference to the event previously set using
create_release_event
on the FutureGuard
which preceded this
WriteGuard
. 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 WriteGuard
is dropped.
pub fn release(guard: WriteGuard<V>) -> OrderLock<V>
[src]
pub fn release(guard: WriteGuard<V>) -> OrderLock<V>
Triggers the release event and releases the lock held by this WriteGuard
before returning the original OrderLock
.
Trait Implementations
impl<V: Debug> Debug for WriteGuard<V>
[src]
impl<V: Debug> Debug for WriteGuard<V>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<V> Deref for WriteGuard<V>
[src]
impl<V> Deref for WriteGuard<V>
type Target = V
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &V
[src]
ⓘImportant traits for &'a mut R
fn deref(&self) -> &V
Dereferences the value.
impl<V> DerefMut for WriteGuard<V>
[src]
impl<V> DerefMut for WriteGuard<V>
ⓘImportant traits for &'a mut Rfn deref_mut(&mut self) -> &mut V
[src]
ⓘImportant traits for &'a mut R
fn deref_mut(&mut self) -> &mut V
Mutably dereferences the value.
impl<V> Drop for WriteGuard<V>
[src]
impl<V> Drop for WriteGuard<V>
impl<V> OrderGuard<V> for WriteGuard<V>
[src]
impl<V> OrderGuard<V> for WriteGuard<V>
Auto Trait Implementations
impl<V> Send for WriteGuard<V> where
V: Send,
impl<V> Send for WriteGuard<V> where
V: Send,
impl<V> Sync for WriteGuard<V> where
V: Send,
impl<V> Sync for WriteGuard<V> where
V: Send,