Skip to content

Commit 0b73fd7

Browse files
committed
Move thread parker to sys_common.
1 parent 4301b5c commit 0b73fd7

File tree

5 files changed

+2
-3
lines changed

5 files changed

+2
-3
lines changed

library/std/src/sys_common/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub mod thread;
6666
pub mod thread_info;
6767
pub mod thread_local_dtor;
6868
pub mod thread_local_key;
69+
pub mod thread_parker;
6970
pub mod util;
7071
pub mod wtf8;
7172

library/std/src/thread/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@
149149
#[cfg(all(test, not(target_os = "emscripten")))]
150150
mod tests;
151151

152-
mod parker;
153-
154152
use crate::any::Any;
155153
use crate::cell::UnsafeCell;
156154
use crate::ffi::{CStr, CString};
@@ -166,9 +164,9 @@ use crate::sys::thread as imp;
166164
use crate::sys_common::mutex;
167165
use crate::sys_common::thread;
168166
use crate::sys_common::thread_info;
167+
use crate::sys_common::thread_parker::Parker;
169168
use crate::sys_common::{AsInner, IntoInner};
170169
use crate::time::Duration;
171-
use parker::Parker;
172170

173171
////////////////////////////////////////////////////////////////////////////////
174172
// Thread-local storage

0 commit comments

Comments
 (0)