Adding some content to thread

This commit is contained in:
Quentin Legot
2023-03-01 15:45:49 +01:00
committed by François Autin
parent 99fc514720
commit c140830faa
5 changed files with 34 additions and 6 deletions

View File

@ -1,13 +1,16 @@
use std::sync::{Mutex, RwLock};
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<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: Arc<RwLock<List<Thread>>> = Arc::new(RwLock::new(List::new()));
}