mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
x11: Windows are Sync again (#474)
* x11: Windows are Sync again Fixes #472 * Add test ensuring that Window is Sync Window must be Sync for Vulkano's Arc<FramebufferAbstract> to be usable.
This commit is contained in:
committed by
GitHub
parent
eae7cb247c
commit
42f0671531
9
tests/sync_object.rs
Normal file
9
tests/sync_object.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
extern crate winit;
|
||||
|
||||
fn needs_sync<T:Sync>() {}
|
||||
|
||||
#[test]
|
||||
fn window_sync() {
|
||||
// ensures that `winit::Window` implements `Sync`
|
||||
needs_sync::<winit::Window>();
|
||||
}
|
||||
Reference in New Issue
Block a user