thr_yield(3T)
NAME
thr_yield − thread yield to another thread
SYNOPSIS
cc [ flag ... ] file ... −lthread [ library ... ]
#include <thread.h>
void thr_yield(void);
MT-LEVEL
MT-Safe
DESCRIPTION
thr_yield() causes the current thread to yield its execution in favor of another thread with the same or greater priority.
RETURN VALUES
thr_yield() returns nothing and does not set errno.
SEE ALSO
sched_yield(3R), thr_setprio(3T)
NOTES
Although there is no POSIX "pthreads" counterpart to thr_yield(), the POSIX real-time function, sched_yield(3R) does correspond to thr_yield(); thereby affording the POSIX portability to this functionality.
SunOS 5.5 — Last change: 29 Apr 1994