1
0
forked from Rativel/BurritOS

Add debug field to thread_manager and tried to fix sc_join (not worked :-( )

This commit is contained in:
Quentin Legot
2023-04-13 02:05:21 +02:00
parent f144438490
commit 232617c32e
6 changed files with 44 additions and 35 deletions

View File

@@ -20,6 +20,10 @@ pub struct System {
impl System {
pub fn new(debug: bool) -> Self {
Self { thread_manager: ThreadManager::new(debug) }
}
// GETTERS
pub fn get_thread_manager(&mut self) -> &mut ThreadManager {
@@ -27,11 +31,3 @@ impl System {
}
}
impl Default for System {
/// System constructor
fn default() -> Self {
Self { thread_manager: ThreadManager::new() }
}
}