axstd 0.3.0-preview.3

ArceOS user library with an interface similar to rust std
Documentation
1
2
3
4
5
6
7
8
//! A naïve sleeping mutex.

use arceos_api::task::AxRawMutex;

/// An alias of [`lock_api::Mutex`].
pub type Mutex<T> = lock_api::Mutex<AxRawMutex, T>;
/// An alias of [`lock_api::MutexGuard`].
pub type MutexGuard<'a, T> = lock_api::MutexGuard<'a, AxRawMutex, T>;