Change var name to fit with rust conventions
This commit is contained in:
committed by
François Autin
parent
cf1c7aad5a
commit
99fc514720
@ -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
|
||||
}
|
Reference in New Issue
Block a user