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:
parent
2b8d1aa663
commit
cba56b0af8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue