Move thread parker to sys_common.
This commit is contained in:
parent
4301b5c1cc
commit
0b73fd7105
5 changed files with 2 additions and 3 deletions
|
@ -66,6 +66,7 @@ pub mod thread;
|
||||||
pub mod thread_info;
|
pub mod thread_info;
|
||||||
pub mod thread_local_dtor;
|
pub mod thread_local_dtor;
|
||||||
pub mod thread_local_key;
|
pub mod thread_local_key;
|
||||||
|
pub mod thread_parker;
|
||||||
pub mod util;
|
pub mod util;
|
||||||
pub mod wtf8;
|
pub mod wtf8;
|
||||||
|
|
||||||
|
|
|
@ -149,8 +149,6 @@
|
||||||
#[cfg(all(test, not(target_os = "emscripten")))]
|
#[cfg(all(test, not(target_os = "emscripten")))]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod parker;
|
|
||||||
|
|
||||||
use crate::any::Any;
|
use crate::any::Any;
|
||||||
use crate::cell::UnsafeCell;
|
use crate::cell::UnsafeCell;
|
||||||
use crate::ffi::{CStr, CString};
|
use crate::ffi::{CStr, CString};
|
||||||
|
@ -166,9 +164,9 @@ use crate::sys::thread as imp;
|
||||||
use crate::sys_common::mutex;
|
use crate::sys_common::mutex;
|
||||||
use crate::sys_common::thread;
|
use crate::sys_common::thread;
|
||||||
use crate::sys_common::thread_info;
|
use crate::sys_common::thread_info;
|
||||||
|
use crate::sys_common::thread_parker::Parker;
|
||||||
use crate::sys_common::{AsInner, IntoInner};
|
use crate::sys_common::{AsInner, IntoInner};
|
||||||
use crate::time::Duration;
|
use crate::time::Duration;
|
||||||
use parker::Parker;
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Thread-local storage
|
// Thread-local storage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue