1
0
forked from Rativel/BurritOS

Fix a lot of errors

This commit is contained in:
Quentin Legot
2023-04-12 14:01:39 +02:00
parent e8629b1ebf
commit 134e2bd2cc
3 changed files with 24 additions and 21 deletions

View File

@@ -15,12 +15,12 @@ use crate::utility::objaddr::ObjAddr;
/// - The list of active threads
/// - The thread to be destroyed next
/// - The scheduler which acts upon these threads
pub struct System<'a> {
pub struct System {
thread_manager: ThreadManager,
obj_addrs: ObjAddr<'a>
obj_addrs: ObjAddr
}
impl<'a> System<'a> {
impl System {
// GETTERS
@@ -28,11 +28,11 @@ impl<'a> System<'a> {
&mut self.thread_manager
}
pub fn get_obj_addrs(&mut self) -> &'a mut ObjAddr { &mut self.obj_addrs }
pub fn get_obj_addrs(&mut self) -> &mut ObjAddr { &mut self.obj_addrs }
}
impl<'a> Default for System<'a> {
impl Default for System {
/// System constructor
fn default() -> Self {
Self { thread_manager: ThreadManager::new(), obj_addrs: ObjAddr::init() }