Skip to content

Cpu

Spice
import "std/os/cpu";

Functions

yield

Spice
public inline p yield()

Causes the calling thread to relinquish the CPU. The thread is moved to the end of the scheduling queue and the next thread gets to run.