From cba56b0af8c7f39d1733ca554f5c87827578e9bb Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Sun, 13 May 2018 10:24:24 +0200 Subject: [PATCH] wayland.compositor: CompositorToken is threadsafe Thanks to the refactor of wayland-rs, the CompositorToken can be make Send/Sync again. Fixes #66. --- src/wayland/compositor/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/compositor/mod.rs b/src/wayland/compositor/mod.rs index e0c67bf..e9c8f90 100644 --- a/src/wayland/compositor/mod.rs +++ b/src/wayland/compositor/mod.rs @@ -248,6 +248,9 @@ impl Clone for CompositorToken { } } +unsafe impl Send for CompositorToken {} +unsafe impl Sync for CompositorToken {} + impl CompositorToken { pub(crate) fn make() -> CompositorToken { CompositorToken {