Function nix::sched::sched_yield

pub fn sched_yield() -> Result<()>
Documentation

Explicitly yield the processor to other threads.

Further reading