Added System initializer method
This commit is contained in:
parent
6e6fbb5e1d
commit
a459a31210
@ -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