Add more from the std
This commit is contained in:
@@ -6,18 +6,23 @@ 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(crate) use current::current_or_unnamed;
|
||||
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(crate) use lifecycle::ThreadInit;
|
||||
pub use local::AccessError;
|
||||
|
||||
// Implementation details used by the thread_local!{} macro.
|
||||
#[doc(hidden)]
|
||||
@@ -30,3 +35,7 @@ pub mod local_impl {
|
||||
#[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!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user