wayland.compositor: CompositorToken is threadsafe

Thanks to the refactor of wayland-rs, the CompositorToken can
be make Send/Sync again.

Fixes #66.
This commit is contained in:
Victor Berger 2018-05-13 10:24:24 +02:00
parent 2b8d1aa663
commit cba56b0af8
1 changed files with 3 additions and 0 deletions

View File

@ -248,6 +248,9 @@ impl<U, R> Clone for CompositorToken<U, R> {
}
}
unsafe impl<U, R> Send for CompositorToken<U, R> {}
unsafe impl<U, R> Sync for CompositorToken<U, R> {}
impl<U, R> CompositorToken<U, R> {
pub(crate) fn make() -> CompositorToken<U, R> {
CompositorToken {