Move system to the right location
This commit is contained in:
committed by
François Autin
parent
83df053dc6
commit
621b0568b0
@ -1,2 +1 @@
|
||||
pub mod list;
|
||||
pub mod system;
|
||||
pub mod list;
|
@ -1,26 +0,0 @@
|
||||
use std::{sync::{RwLock, Arc}};
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
use crate::kernel::{thread::Thread, scheduler::Scheduler};
|
||||
|
||||
use super::list::List;
|
||||
extern crate lazy_static;
|
||||
|
||||
lazy_static! {
|
||||
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());
|
||||
pub static ref G_SCHEDULER: RwLock<Scheduler> = RwLock::new(Scheduler::new());
|
||||
}
|
||||
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub enum ObjectType {
|
||||
SemaphoreType,
|
||||
LockType,
|
||||
ConditionType,
|
||||
FileType,
|
||||
ThreadType,
|
||||
InvalidType
|
||||
}
|
Reference in New Issue
Block a user