pub struct SyncFenceRegistrySynchronousProxy { /* private fields */ }
Implementations§
source§impl SyncFenceRegistrySynchronousProxy
impl SyncFenceRegistrySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<SyncFenceRegistryEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<SyncFenceRegistryEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn create_sync_fences(
&self,
num_fences: u32,
___deadline: Time
) -> Result<(Vec<SyncFenceKey>, Vec<Event>), Error>
pub fn create_sync_fences( &self, num_fences: u32, ___deadline: Time ) -> Result<(Vec<SyncFenceKey>, Vec<Event>), Error>
Batch create SyncFences. There is one-to-one correspondance between
sync_fence_keys
and events
. Each event is treated as the first
synchronization object that is backing a SyncFence. There may be
other events added later through SYNC_IOC_MERGE ioctl.
Lifetime of SyncFence is defined by how long the client holds SyncFenceKey.
sourcepub fn register_signaled_event(
&self,
fence_key: SyncFenceKey,
event: Event
) -> Result<(), Error>
pub fn register_signaled_event( &self, fence_key: SyncFenceKey, event: Event ) -> Result<(), Error>
Registers an event
for this SyncFenceKey. This event is expected to
be signaled iff all the underlying events associated with this
SyncFence are signaled.
If fence_key
is not found in the registry of created SyncFenceKeys or
dropped, event
is signaled immediately.
Trait Implementations§
source§impl SynchronousProxy for SyncFenceRegistrySynchronousProxy
impl SynchronousProxy for SyncFenceRegistrySynchronousProxy
§type Proxy = SyncFenceRegistryProxy
type Proxy = SyncFenceRegistryProxy
The async proxy for the same protocol.
§type Protocol = SyncFenceRegistryMarker
type Protocol = SyncFenceRegistryMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SyncFenceRegistrySynchronousProxy
impl RefUnwindSafe for SyncFenceRegistrySynchronousProxy
impl Send for SyncFenceRegistrySynchronousProxy
impl Sync for SyncFenceRegistrySynchronousProxy
impl Unpin for SyncFenceRegistrySynchronousProxy
impl UnwindSafe for SyncFenceRegistrySynchronousProxy
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