Skip to content

Commit

Permalink
add sync_slice and sync_array
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Feb 12, 2022
1 parent fe27ece commit 2b0e756
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/std/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ mod sync_flag;
mod wait_group;
mod sync_map;
mod once;
mod sync_vec;
mod sync_slice;

pub(crate) mod atomic_dur;
#[cfg(not(unix))]
Expand All @@ -28,3 +30,5 @@ pub use self::wait_group::*;
pub use self::sync_map::*;
pub use self::once::*;
pub use self::channel::*;
pub use self::sync_vec::*;
pub use self::sync_slice::*;
2 changes: 2 additions & 0 deletions src/std/sync/sync_slice.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// a sync slice array
pub type SyncSlice<T> = crate::std::queue::array_queue::ArrayQueue<T>;
2 changes: 2 additions & 0 deletions src/std/sync/sync_vec.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// a sync vec array
pub type SyncVec<T> = crate::std::queue::seg_queue::SegQueue<T>;

0 comments on commit 2b0e756

Please sign in to comment.