From 74363a1bffebdfa79d757dfad8b67f0b6d1b8fd6 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 20 Aug 2024 09:44:35 -0300 Subject: [PATCH] Getting a better log on this --- condvartest/src/beacon.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/condvartest/src/beacon.rs b/condvartest/src/beacon.rs index a0fa9de..4c4eb6f 100644 --- a/condvartest/src/beacon.rs +++ b/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(); }