Added System initializer method
This commit is contained in:
parent
06be5c9796
commit
de502973c7
@ -28,6 +28,17 @@ pub struct System {
|
|||||||
|
|
||||||
impl System {
|
impl System {
|
||||||
|
|
||||||
|
/// System constructor
|
||||||
|
pub fn new(machine: Machine, scheduler: Scheduler) -> Self {
|
||||||
|
Self {
|
||||||
|
g_machine: machine,
|
||||||
|
g_current_thread: None,
|
||||||
|
g_thread_to_be_destroyed: None,
|
||||||
|
g_alive: List::new(),
|
||||||
|
g_scheduler: scheduler
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// GETTERS
|
// GETTERS
|
||||||
|
|
||||||
/// Returns the Machine
|
/// Returns the Machine
|
||||||
|
Loading…
Reference in New Issue
Block a user