From a6253ed05a1e0d14bc64915f5937c29092df9497 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Mon, 4 Nov 2019 22:22:40 -0800 Subject: 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. --- tokio/src/sync/semaphore.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tokio/src/sync/semaphore.rs') 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, }; -- cgit v1.2.3