pub struct SyncFence { /* private fields */ }
Expand description
Provides a way to wait for a server-side operation to be finished.
Creating a SyncFence
injects an element in the commands queue of the backend.
When this element is reached, the fence becomes signaled.
Example
let fence = glium::SyncFence::new(&display).unwrap();
do_something(&display);
fence.wait(); // blocks until the previous operations have finished
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SyncFence
impl !Send for SyncFence
impl !Sync for SyncFence
impl Unpin for SyncFence
impl !UnwindSafe for SyncFence
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