This commit is contained in:
Stephan Dilly 2020-07-18 11:59:30 +02:00
parent c759bf7729
commit ed730c2fa1

View file

@ -1,6 +1,6 @@
use std::sync::{Arc, Condvar, Mutex};
///
/// combines a `Mutex` and `Condvar` to allow waiting for a change in the variable protected by the `Mutex`
#[derive(Clone, Debug)]
pub struct NotifyableMutex<T> {
data: Arc<(Mutex<T>, Condvar)>,