1
0
forked from Rativel/BurritOS

implemented sc_lock_release

TODO : to implement lock_release in thread_manager
This commit is contained in:
Rémi Rativel
2023-04-13 14:45:57 +02:00
parent 3244584da9
commit ec2f50f7d3
2 changed files with 9 additions and 0 deletions

View File

@@ -282,6 +282,10 @@ impl ThreadManager {
}
}
pub fn lock_release(&mut self, id: i32, machine: &mut Machine) -> Result<MachineOk, MachineError>{
todo!()
}
/// Currently running thread
pub fn get_g_current_thread(&mut self) -> &Option<Rc<RefCell<Thread>>> {
&self.g_current_thread