mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
executor: impl Unpark for Arc<Unpark> (#802)
This commit is contained in:
committed by
Toby Lawrence
parent
fdf4aba621
commit
1a5026324f
@@ -133,6 +133,12 @@ impl Unpark for Box<Unpark> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Unpark for Arc<Unpark> {
|
||||
fn unpark(&self) {
|
||||
(**self).unpark()
|
||||
}
|
||||
}
|
||||
|
||||
/// Blocks the current thread using a condition variable.
|
||||
///
|
||||
/// Implements the [`Park`] functionality by using a condition variable. An
|
||||
|
||||
Reference in New Issue
Block a user