forked from Rativel/BurritOS
Implemente finish (not finished yet), fix ucontext for windows
This commit is contained in:
committed by
François Autin
parent
3457f67a7c
commit
dc49951bab
@@ -2,11 +2,12 @@ use std::{sync::{RwLock, Arc}};
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
use crate::{kernel::{thread::Thread, scheduler::Scheduler}, utility::list::List};
|
||||
use crate::{kernel::{thread::Thread, scheduler::Scheduler}, utility::list::List, simulator::machine::Machine};
|
||||
|
||||
extern crate lazy_static;
|
||||
|
||||
lazy_static! {
|
||||
pub static ref G_MACHINE: RwLock<Machine> = RwLock::new(Machine::_init_machine());
|
||||
pub static ref G_CURRENT_THREAD: RwLock<Option<Thread>> = RwLock::new(Option::None);
|
||||
pub static ref G_THREAD_TO_BE_DESTROYED: RwLock<Option<Thread>> = RwLock::new(Option::None);
|
||||
pub static ref G_ALIVE: RwLock<List<Arc<Thread>>> = RwLock::new(List::new());
|
||||
|
||||
Reference in New Issue
Block a user