Lines Matching refs:unit
8 use crate::unit::Unit;
54 pub fn insert_into_name_table(path: &str, unit: usize) { in insert_into_name_table()
58 NAME_TO_UNIT_MAP.write().unwrap().insert(hash, unit); in insert_into_name_table()
131 pub fn insert_unit_with_id(id: usize, unit: Arc<Mutex<dyn Unit>>) { in insert_unit_with_id()
134 map.insert(id, unit); in insert_unit_with_id()
196 for (id, unit) in manager.iter() { in init_units_dependencies()
197 let mut unit = unit.lock().unwrap(); in init_units_dependencies() localVariable
198 let before = unit.unit_base_mut().unit_part().before(); in init_units_dependencies()
206 for (id, unit) in manager.iter() { in init_units_dependencies()
207 let mut unit = unit.lock().unwrap(); in init_units_dependencies() localVariable
210 let binds_to = unit.unit_base_mut().unit_part().binds_to(); in init_units_dependencies()
218 let part_of = unit.unit_base_mut().unit_part().part_of(); in init_units_dependencies()
238 let unit = running_manager.running_table.get_mut(&id).unwrap(); in kill_running() localVariable
239 let _ = unit.kill(); in kill_running()