Searched refs:locked_keys (Results 1 – 1 of 1) sorted by relevance
517 locked_keys: Mutex<HashSet<i64>>, field529 Self { locked_keys: Mutex::new(HashSet::new()), cond_var: Condvar::new() } in new()536 let mut locked_keys = self.locked_keys.lock().unwrap(); in get() localVariable537 while locked_keys.contains(&key_id) { in get()538 locked_keys = self.cond_var.wait(locked_keys).unwrap(); in get()540 locked_keys.insert(key_id); in get()549 let mut locked_keys = self.locked_keys.lock().unwrap(); in try_get() localVariable550 if locked_keys.insert(key_id) { in try_get()567 let mut locked_keys = KEY_ID_LOCK.locked_keys.lock().unwrap(); in drop() localVariable568 locked_keys.remove(&self.0); in drop()[all …]