Struct nannou::ui::backend::glium::glium::SyncFence [] [src]

pub struct SyncFence { /* fields omitted */ }

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

Methods

impl SyncFence
[src]

[src]

Builds a new SyncFence that is injected in the server.

[src]

Blocks until the operation has finished on the server.

Trait Implementations

impl Drop for SyncFence
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for SyncFence

impl !Sync for SyncFence