Searched refs:on_death (Results 1 – 1 of 1) sorted by relevance
16 on_death: Rc<Semaphore>, field22 Self { lock: Arc::new(Mutex::new(t)), on_death: Rc::new(Semaphore::new(0)) } in new()36 let on_death = self.on_death.clone(); in lock() localVariable41 permit = on_death.acquire() => { in lock()63 self.on_death.add_permits(Arc::strong_count(&self.lock) + 1); in drop()