From 1039963b6d24af560c14860280080ab110a959a0 Mon Sep 17 00:00:00 2001 From: rabite Date: Tue, 21 May 2019 21:49:09 +0200 Subject: [PATCH] impl Sync for PollWatcher --- src/poll.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/poll.rs b/src/poll.rs index f4344b7f..b16ae7bb 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -310,3 +310,6 @@ impl Drop for PollWatcher { } } } + +// Because all public methods are `&mut self` it's also perfectly safe to share references. +unsafe impl Sync for PollWatcher {}