summaryrefslogtreecommitdiff
path: root/src/parking_lot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parking_lot.rs')
-rw-r--r--src/parking_lot.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/parking_lot.rs b/src/parking_lot.rs
index 440b7c7..1bd19eb 100644
--- a/src/parking_lot.rs
+++ b/src/parking_lot.rs
@@ -4,17 +4,18 @@
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
-use cfg_if::cfg_if;
use crate::thread_parker::{ThreadParker, ThreadParkerT, UnparkHandleT};
use crate::util::UncheckedOptionExt;
use crate::word_lock::WordLock;
+use cfg_if::cfg_if;
use core::{
cell::{Cell, UnsafeCell},
ptr,
sync::atomic::{AtomicPtr, AtomicUsize, Ordering},
};
+use instant::Instant;
use smallvec::SmallVec;
-use std::time::{Duration, Instant};
+use std::time::Duration;
cfg_if! {
if #[cfg(all(
@@ -51,7 +52,7 @@ cfg_if! {
// See https://github.com/rust-lang/rust/blob/master/src/libstd/sys/wasm/time.rs
type InstantType = DummyInstant;
} else {
- // Otherwise use `std::time::Instant`
+ // Otherwise use `instant::Instant`
type InstantType = Instant;
}
}