summaryrefslogtreecommitdiff
path: root/src/thread_parker/windows/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread_parker/windows/mod.rs')
-rw-r--r--src/thread_parker/windows/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread_parker/windows/mod.rs b/src/thread_parker/windows/mod.rs
index 76dbb5d..1f5ed23 100644
--- a/src/thread_parker/windows/mod.rs
+++ b/src/thread_parker/windows/mod.rs
@@ -9,7 +9,7 @@ use core::{
ptr,
sync::atomic::{AtomicPtr, AtomicUsize, Ordering},
};
-use instant::Instant;
+use std::time::Instant;
mod keyed_event;
mod waitaddress;
@@ -177,7 +177,7 @@ pub fn thread_yield() {
// libraries, but that'll probably take a lot longer than patching this here
// and avoiding the `synchapi` feature entirely.
extern "system" {
- fn Sleep(a: winapi::shared::minwindef::DWORD);
+ fn Sleep(a: u32);
}
unsafe {
// We don't use SwitchToThread here because it doesn't consider all