Fix a race in thread wakeup (#459)

This commit is contained in:
Stjepan Glavina
2018-07-03 16:28:50 -07:00
committed by Carl Lerche
parent dbefa67058
commit 7fb579c667
3 changed files with 16 additions and 20 deletions
+6 -2
View File
@@ -29,8 +29,12 @@ use std::time::{Duration, Instant};
/// Thread worker
///
/// This is passed to the `around_worker` callback set on `Builder`. This
/// callback is only expected to call `run` on it.
/// This is passed to the [`around_worker`] callback set on [`Builder`]. This
/// callback is only expected to call [`run`] on it.
///
/// [`Builder`]: struct.Builder.html
/// [`around_worker`]: struct.Builder.html#method.around_worker
/// [`run`]: struct.Worker.html#method.run
#[derive(Debug)]
pub struct Worker {
// Shared scheduler data