thr_yield(3C) causes the current thread to yield its execution in favor of another thread with the same or greater priority. Otherwise, thr_yield() has no effect. However, calling thr_yield() does not guarantee that the thread yields its execution.
#include <thread.h> void thr_yield(void);
thr_yield() returns nothing and does not set errno .