Expand description
The inner logic for thread spawning and joining.
Re-exportsยง
use super::current::set_current;๐use super::id::ThreadId;๐use super::scoped::ScopeData;๐use super::thread::Thread;๐use super::Result;๐use super::spawnhook;๐use crate::cell::UnsafeCell;๐use crate::marker::PhantomData;๐use crate::mem::MaybeDangling;๐Experimental use crate::sync::Arc;๐use crate::sync::atomic::Atomic;๐Experimental use crate::sync::atomic::AtomicUsize;๐use crate::sync::atomic::Ordering;๐use crate::sys::AsInner;๐use crate::sys::IntoInner;๐use crate::sys::thread as imp;๐use crate::env;๐use crate::env;๐use crate::io;๐use crate::panic;๐use crate::panic;๐
Structsยง
- Join
Inner ๐ - Inner representation for JoinHandle
- Packet ๐
- Thread
Init ๐ - The data passed to the spawned thread for thread initialization. Any thread implementation should start a new thread by calling .init() on this before doing anything else to ensure the current thread is properly initialized and the global allocator works.
Functionsยง
- spawn_
unchecked ๐ โ