Skip to main content

THREAD_YIELDS_AT_EXIT

Constant THREAD_YIELDS_AT_EXIT 

Source
const THREAD_YIELDS_AT_EXIT: u32 = 256;
Expand description

When the program exits, we will yield to any other thread that is ready to execute. But we must only do that a finite number of times, or a background thread running loop {} will hang the program.