Browse Source

Getting a better log on this

master
Julio Biason 3 months ago
parent
commit
74363a1bff
  1. 3
      condvartest/src/beacon.rs

3
condvartest/src/beacon.rs

@ -31,8 +31,9 @@ impl Beacon {
}
pub fn release(&self, leases: usize) {
println!("Releasing {leases} leases");
println!("Trying to release {leases} leases");
let control = self.lock.lock().unwrap();
println!("Releasing {leases} leases");
control.fetch_add(leases, Ordering::SeqCst);
self.guard.notify_all();
}

Loading…
Cancel
Save