Merge pull request #92 from Smithay/compositor_token_send

wayland.compositor: CompositorToken is threadsafe
This commit is contained in:
Victor Berger 2018-05-13 13:31:09 +02:00 committed by GitHub
commit 664327660e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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> { impl<U, R> CompositorToken<U, R> {
pub(crate) fn make() -> CompositorToken<U, R> { pub(crate) fn make() -> CompositorToken<U, R> {
CompositorToken { CompositorToken {