Skip to main content

enter_no_alloc

Function enter_no_alloc 

Source
pub fn enter_no_alloc()
Expand description

Mark this thread as a shard thread: from here on, allocating aborts.

Called once by each shard as it enters its loop. There is no matching exit in normal operation because a shard thread never stops being one. A loop that is not a shard’s, and so does want the mark to end, wants guard.