Files
moss-kernel/src/sync/mod.rs
Matthew Leach ca6fdd0da5 Initial Commit
Initial commit of arm64 bring-up code, kernel core (libkernel) and build
infrastructure.
2025-11-16 20:15:01 +00:00

16 lines
667 B
Rust

use crate::arch::ArchImpl;
pub mod per_cpu;
pub type SpinLock<T> = libkernel::sync::spinlock::SpinLockIrq<T, ArchImpl>;
pub type Mutex<T> = libkernel::sync::mutex::Mutex<T, ArchImpl>;
pub type AsyncMutexGuard<'a, T> = libkernel::sync::mutex::AsyncMutexGuard<'a, T, ArchImpl>;
pub type OnceLock<T> = libkernel::sync::once_lock::OnceLock<T, ArchImpl>;
pub type CondVar<T> = libkernel::sync::condvar::CondVar<T, ArchImpl>;
// pub type Reciever<T> = libkernel::sync::mpsc::Reciever<T, ArchImpl>;
// pub type Sender<T> = libkernel::sync::mpsc::Sender<T, ArchImpl>;
// pub fn channel<T: Send>() -> (Sender<T>, Reciever<T>) {
// libkernel::sync::mpsc::channel()
// }