Skip to main content

Module lifecycle

Module lifecycle 

Source
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ยง

JoinInner ๐Ÿ”’
Inner representation for JoinHandle
Packet ๐Ÿ”’
ThreadInit ๐Ÿ”’
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 ๐Ÿ”’ โš