Skip to content

Commit

Permalink
Move thread parker to sys_common.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Sep 27, 2020
1 parent 4301b5c commit 0b73fd7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys_common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pub mod thread;
pub mod thread_info;
pub mod thread_local_dtor;
pub mod thread_local_key;
pub mod thread_parker;
pub mod util;
pub mod wtf8;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions library/std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@
#[cfg(all(test, not(target_os = "emscripten")))]
mod tests;

mod parker;

use crate::any::Any;
use crate::cell::UnsafeCell;
use crate::ffi::{CStr, CString};
Expand All @@ -166,9 +164,9 @@ use crate::sys::thread as imp;
use crate::sys_common::mutex;
use crate::sys_common::thread;
use crate::sys_common::thread_info;
use crate::sys_common::thread_parker::Parker;
use crate::sys_common::{AsInner, IntoInner};
use crate::time::Duration;
use parker::Parker;

////////////////////////////////////////////////////////////////////////////////
// Thread-local storage
Expand Down

0 comments on commit 0b73fd7

Please sign in to comment.