mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 15:26:43 +01:00
3e9ed1efb8
from the synopses of pthread*(3) manpages. Reviewed by: deischen, davidxu
31 lines
643 B
Groff
31 lines
643 B
Groff
.\" $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>
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd September 18, 2006
|
|
.Dt PTHREAD_YIELD 3
|
|
.Os
|
|
.Sh NAME
|
|
.Nm pthread_yield
|
|
.Nd yield control of the current thread
|
|
.Sh LIBRARY
|
|
.Lb libpthread
|
|
.Sh SYNOPSIS
|
|
.In pthread.h
|
|
.Ft void
|
|
.Fn pthread_yield void
|
|
.Sh DESCRIPTION
|
|
The
|
|
.Fn pthread_yield
|
|
forces the running thread to relinquish the processor until it again
|
|
becomes the head of its thread list.
|
|
.Sh SEE ALSO
|
|
.Xr sched_yield 2
|
|
.Sh STANDARDS
|
|
The
|
|
.Fn pthread_yield
|
|
is a non-portable (but quite common) extension to
|
|
.St -p1003.1-2001 .
|