sync/signal: Implement Default for Signal
This commit is contained in:
parent
14a2d15240
commit
536b6a2de5
@ -56,6 +56,15 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<M, T> Default for Signal<M, T>
|
||||||
|
where
|
||||||
|
M: RawMutex,
|
||||||
|
{
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<M, T: Send> Signal<M, T>
|
impl<M, T: Send> Signal<M, T>
|
||||||
where
|
where
|
||||||
M: RawMutex,
|
M: RawMutex,
|
||||||
|
Loading…
Reference in New Issue
Block a user