We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c759bf7 commit ed730c2Copy full SHA for ed730c2
src/notify_mutex.rs
@@ -1,6 +1,6 @@
1
use std::sync::{Arc, Condvar, Mutex};
2
3
-///
+/// combines a `Mutex` and `Condvar` to allow waiting for a change in the variable protected by the `Mutex`
4
#[derive(Clone, Debug)]
5
pub struct NotifyableMutex<T> {
6
data: Arc<(Mutex<T>, Condvar)>,
0 commit comments