forked from Rativel/BurritOS
Fix a lot of errors
This commit is contained in:
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user