File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ use crate::iter;
33use crate :: sync:: Arc ;
44use crate :: thread:: Thread ;
55
6- // A thread local linked list of spawn hooks.
76crate :: thread_local! {
7+ /// A thread local linked list of spawn hooks.
8+ ///
9+ /// It is a linked list of Arcs, such that it can very cheaply be inhereted by spawned threads.
10+ ///
11+ /// (That technically makes it a set of linked lists with shared tails, so a linked tree.)
812 static SPAWN_HOOKS : Cell <SpawnHooks > = const { Cell :: new( SpawnHooks { first: None } ) } ;
913}
1014
@@ -42,7 +46,7 @@ struct SpawnHook {
4246///
4347/// Hooks can only be added, not removed.
4448///
45- /// The hooks will run in order, starting with the most recently added.
49+ /// The hooks will run in reverse order, starting with the most recently added.
4650///
4751/// # Usage
4852///
You can’t perform that action at this time.
0 commit comments