Multithreaded Programming Guide

Exit Print View

Updated: July 2014
 
 

Yield Thread Execution

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.

thr_yield Syntax

#include <thread.h>

void thr_yield(void);

thr_yield Return Values

thr_yield() returns nothing and does not set errno .