diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-04 22:22:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 22:22:40 -0800 |
commit | a6253ed05a1e0d14bc64915f5937c29092df9497 (patch) | |
tree | 15c96ca9b66e5bca424769e8c715f732feaa1b1c /tokio/src/sync/semaphore.rs | |
parent | 94f9b04b066cfc3da5c3ee2c961c21a9496135dd (diff) |
chore: unify all mocked `loom` files (#1732)
When the crates were merged, each component kept its own `loom` file
containing mocked types it needed. This patch unifies them all in one
location.
Diffstat (limited to 'tokio/src/sync/semaphore.rs')
-rw-r--r-- | tokio/src/sync/semaphore.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tokio/src/sync/semaphore.rs b/tokio/src/sync/semaphore.rs index 1120be07..b4a093f8 100644 --- a/tokio/src/sync/semaphore.rs +++ b/tokio/src/sync/semaphore.rs @@ -8,12 +8,10 @@ //! section. If no permits are available, then acquiring the semaphore returns //! `Pending`. The task is woken once a permit becomes available. -use crate::sync::loom::{ +use crate::loom::{ + cell::CausalCell, future::AtomicWaker, - sync::{ - atomic::{AtomicPtr, AtomicUsize}, - CausalCell, - }, + sync::atomic::{AtomicPtr, AtomicUsize}, thread, }; |