[−][src]Struct fil_ocl::ReadGuard
Allows access to the data contained within a lock just like a mutex guard.
Methods
impl<V> ReadGuard<V>
[src]
pub fn release_event(guard: &ReadGuard<V>) -> Option<&Event>
[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.
pub fn release(guard: ReadGuard<V>) -> OrderLock<V>
[src]
Triggers the release event and releases the lock held by this ReadGuard
before returning the original OrderLock
.
Trait Implementations
impl<V> OrderGuard<V> for ReadGuard<V>
[src]
fn new(order_lock: OrderLock<V>, release_event: Option<Event>) -> ReadGuard<V>
[src]
fn order_lock(&self) -> &OrderLock<V>
[src]
unsafe fn forget(self)
[src]
impl<V> Drop for ReadGuard<V>
[src]
impl<V: Debug> Debug for ReadGuard<V>
[src]
impl<V> Deref for ReadGuard<V>
[src]
Auto Trait Implementations
impl<V> Send for ReadGuard<V> where
V: Send,
V: Send,
impl<V> Sync for ReadGuard<V> where
V: Send,
V: Send,
impl<V> Unpin for ReadGuard<V>
impl<V> !UnwindSafe for ReadGuard<V>
impl<V> !RefUnwindSafe for ReadGuard<V>
Blanket Implementations
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,