[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    thr_yield(3T) manual page Table of Contents

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

There is a POSIX real-time function, sched_yield(3R) , that provides the same functionality as thr_yield(). For Solaris, sched_yield(3R) does nothing more than return an error message indicating that the system call is not supported.


Table of Contents