forked from Rativel/BurritOS
Add debug field to thread_manager and tried to fix sc_join (not worked :-( )
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user