Open
Description
The example at https://doc.rust-lang.org/std/sync/struct.Condvar.html issues a mutex_atomic warning, suggesting the replacement of Mutex::new(false)
by an AtomicBool
. My understanding is that we need a mutex to use CondVar.
The example at https://doc.rust-lang.org/std/sync/struct.Condvar.html issues a mutex_atomic warning, suggesting the replacement of Mutex::new(false)
by an AtomicBool
. My understanding is that we need a mutex to use CondVar.