mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
Fix a race in thread wakeup (#459)
This commit is contained in:
committed by
Carl Lerche
parent
dbefa67058
commit
7fb579c667
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user