Changeset View
Changeset View
Standalone View
Standalone View
share/man/man3/pthread_yield.3
.\" $OpenBSD: pthread_yield.3,v 1.3 2004/01/25 14:48:32 jmc Exp $ | .\" $OpenBSD: pthread_yield.3,v 1.3 2004/01/25 14:48:32 jmc Exp $ | ||||
.\" | .\" | ||||
.\" PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> | .\" PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd September 18, 2006 | .Dd November 14, 2020 | ||||
.Dt PTHREAD_YIELD 3 | .Dt PTHREAD_YIELD 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm pthread_yield | .Nm pthread_yield | ||||
.Nd yield control of the current thread | .Nd yield control of the current thread | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libpthread | .Lb libpthread | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In pthread.h | .In pthread.h | ||||
.Ft void | .Ft void | ||||
.Fn pthread_yield void | .Fn pthread_yield void | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Fn pthread_yield | .Fn pthread_yield | ||||
forces the running thread to relinquish the processor until it again | forces the running thread to relinquish the processor until it again | ||||
becomes the head of its thread list. | becomes the head of its thread list. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr sched_yield 2 | .Xr sched_yield 2 | ||||
.Sh STANDARDS | .Sh STANDARDS | ||||
The | The | ||||
.Fn pthread_yield | .Fn pthread_yield | ||||
is a non-portable (but quite common) extension to | is a non-portable (but quite common) extension to | ||||
.St -p1003.1-2001 . | .St -p1003.1-2001 . | ||||
.Sh HISTORY | |||||
The | |||||
.Fn pthread_yield | |||||
function first appeared in | |||||
.Fx 5.1 . |