2023-03-01 10:11:19 +01:00
|
|
|
use crate::kernel::thread::Thread;
|
|
|
|
|
|
|
|
|
|
|
|
pub static g_current_thread: Box<Option<Thread>> = Box::new(Option::None);
|
|
|
|
pub static g_thread_to_be_destroyed: Box<Option<Thread>> = Box::new(Option::None);
|
2023-02-28 14:43:40 +01:00
|
|
|
|
|
|
|
pub enum ObjectType {
|
|
|
|
SEMAPHORE_TYPE,
|
|
|
|
LOCK_TYPE,
|
|
|
|
CONDITION_TYPE,
|
|
|
|
FILE_TYPE,
|
|
|
|
THREAD_TYPE,
|
|
|
|
INVALID_TYPE
|
|
|
|
}
|