mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-02-01 01:51:45 -05:00
16 lines
667 B
Rust
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()
|
|
// }
|