use std::sync::{RwLock, Arc}; use lazy_static::lazy_static; use crate::kernel::thread::Thread; use super::list::List; extern crate lazy_static; lazy_static! { pub static ref G_CURRENT_THREAD: RwLock> = RwLock::new(Option::None); pub static ref G_THREAD_TO_BE_DESTROYED: RwLock> = RwLock::new(Option::None); // pub static ref G_ALIVE: Arc>> = Arc::new(RwLock::new(List::new())); } #[derive(PartialEq)] pub enum ObjectType { SemaphoreType, LockType, ConditionType, FileType, ThreadType, InvalidType }