Home
last modified time | relevance | path

Searched refs:on_death (Results 1 – 1 of 1) sorted by relevance

/packages/modules/Bluetooth/system/rust/src/core/
Dshared_mutex.rs16 on_death: Rc<Semaphore>, field
22 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() localVariable
41 permit = on_death.acquire() => { in lock()
63 self.on_death.add_permits(Arc::strong_count(&self.lock) + 1); in drop()