DragonFly On-Line Manual Pages

Search: Section:  


PTHREAD_YIELD(3)      DragonFly Library Functions Manual      PTHREAD_YIELD(3)

NAME

pthread_yield - yield control of the current thread

LIBRARY

POSIX Threads Library (libpthread, -lpthread)

SYNOPSIS

#include <pthread.h> void pthread_yield(void); #include <pthread_np.h> void pthread_yield_np(void);

DESCRIPTION

The pthread_yield() forces the running thread to relinquish the processor until it again becomes the head of its thread list.

SEE ALSO

sched_yield(2)

STANDARDS

The pthread_yield() is a non-portable (but quite common) extension to IEEE Std 1003.1-2001 ("POSIX.1"). DragonFly 5.9-DEVELOPMENT December 16, 2020 DragonFly 5.9-DEVELOPMENT

Search: Section: