42 lines
1017 B
Rust
42 lines
1017 B
Rust
pub mod builder;
|
|
pub mod current;
|
|
pub mod functions;
|
|
pub mod id;
|
|
pub mod join_handle;
|
|
pub mod lifecycle;
|
|
pub mod local;
|
|
pub mod main_thread;
|
|
pub mod scoped;
|
|
pub mod spawnhook;
|
|
pub mod thread;
|
|
|
|
use core::any::Any;
|
|
|
|
pub use crate::sys::thread::yield_now;
|
|
pub use current::current_id;
|
|
pub(crate) use current::current_or_unnamed;
|
|
pub(crate) use current::current_os_id;
|
|
pub(crate) use current::with_current_name;
|
|
pub use functions::sleep;
|
|
pub use id::ThreadId;
|
|
pub(crate) use lifecycle::ThreadInit;
|
|
pub use local::LocalKey;
|
|
pub use thread::Thread;
|
|
pub use local::AccessError;
|
|
|
|
// Implementation details used by the thread_local!{} macro.
|
|
#[doc(hidden)]
|
|
#[unstable(feature = "thread_local_internals", issue = "none")]
|
|
pub mod local_impl {
|
|
pub use super::local::thread_local_process_attrs;
|
|
pub use crate::sys::thread_local::*;
|
|
}
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
#[doc(search_unbox)]
|
|
pub type Result<T> = crate::result::Result<T, Box<dyn Any + Send + 'static>>;
|
|
|
|
pub fn panicking() -> ! {
|
|
todo!()
|
|
}
|