← Quit0 / 0 correct
What happens when you compile this?
let m = std::sync::Mutex::new(0);
let _ = m.lock().unwrap();
// critical section?
*m.lock().unwrap() += 1;What happens when you compile this?
let m = std::sync::Mutex::new(0);
let _ = m.lock().unwrap();
// critical section?
*m.lock().unwrap() += 1;