Struct ocl::async::WriteGuard
source · pub struct WriteGuard<V> { /* private fields */ }
Expand description
Allows access to the data contained within just like a mutex guard.
Implementations§
source§impl<V> WriteGuard<V>
impl<V> WriteGuard<V>
sourcepub fn release_event(guard: &WriteGuard<V>) -> Option<&Event>
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.
sourcepub fn release(guard: WriteGuard<V>) -> OrderLock<V>
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§
source§impl<V: Debug> Debug for WriteGuard<V>
impl<V: Debug> Debug for WriteGuard<V>
source§impl<V> Deref for WriteGuard<V>
impl<V> Deref for WriteGuard<V>
source§impl<V> DerefMut for WriteGuard<V>
impl<V> DerefMut for WriteGuard<V>
source§impl<V> Drop for WriteGuard<V>
impl<V> Drop for WriteGuard<V>
source§impl<V> OrderGuard<V> for WriteGuard<V>
impl<V> OrderGuard<V> for WriteGuard<V>
Auto Trait Implementations§
impl<V> Freeze for WriteGuard<V>
impl<V> !RefUnwindSafe for WriteGuard<V>
impl<V> Send for WriteGuard<V>where
V: Send,
impl<V> Sync for WriteGuard<V>where
V: Send,
impl<V> Unpin for WriteGuard<V>
impl<V> !UnwindSafe for WriteGuard<V>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more