Change var name to fit with rust conventions

This commit is contained in:
Quentin Legot
2023-03-01 11:16:21 +01:00
committed by François Autin
parent cf1c7aad5a
commit 99fc514720
3 changed files with 12 additions and 12 deletions

View File

@ -6,17 +6,17 @@ use crate::kernel::thread::Thread;
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_CURRENT_THREAD: RwLock<Option<Thread>> = RwLock::new(Option::None);
pub static ref G_THREAD_TO_BE_DESTROYED: RwLock<Option<Thread>> = RwLock::new(Option::None);
}
#[derive(PartialEq)]
pub enum ObjectType {
SEMAPHORE_TYPE,
LOCK_TYPE,
CONDITION_TYPE,
FILE_TYPE,
THREAD_TYPE,
INVALID_TYPE
SemaphoreType,
LockType,
ConditionType,
FileType,
ThreadType,
InvalidType
}