burritos/src/utility/system.rs

14 lines
323 B
Rust
Raw Normal View History

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
}