-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] refactor axstd sync, expose sync types provided by axsync dire…
…ctly
- Loading branch information
Showing
9 changed files
with
35 additions
and
221 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//! Useful synchronization primitives. | ||
#[doc(no_inline)] | ||
pub use core::sync::atomic; | ||
|
||
#[cfg(feature = "alloc")] | ||
#[doc(no_inline)] | ||
pub use alloc::sync::{Arc, Weak}; | ||
|
||
// Re-export the `Mutex` and `MutexGuard` types. | ||
pub use axsync::{Mutex, MutexGuard}; | ||
|
||
// Re-export the `RwLock` and related types. | ||
pub use axsync::{ | ||
MappedRwLockReadGuard, MappedRwLockWriteGuard, RwLock, RwLockReadGuard, RwLockWriteGuard, | ||
}; | ||
|
||
// Re-export the `Barrier` and `BarrierWaitResult` types. | ||
#[cfg(feature = "multitask")] | ||
pub use axsync::{Barrier, BarrierWaitResult}; | ||
// Re-export the `Condvar` and `WaitTimeoutResult` types. | ||
#[cfg(feature = "multitask")] | ||
pub use axsync::{Condvar, WaitTimeoutResult}; | ||
// Re-export the `Semaphore` and `SemaphoreGuard` types. | ||
#[cfg(feature = "multitask")] | ||
pub use axsync::{Semaphore, SemaphoreGuard}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.