use std::sync::{Mutex, RwLock}; use lazy_static::lazy_static; use crate::kernel::thread::Thread; 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); } #[derive(PartialEq)] pub enum ObjectType { SEMAPHORE_TYPE, LOCK_TYPE, CONDITION_TYPE, FILE_TYPE, THREAD_TYPE, INVALID_TYPE }