Adding some content to thread
This commit is contained in:
committed by
François Autin
parent
99fc514720
commit
c140830faa
@ -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()));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user