Struct azul_glium::SyncFence
source · 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