summaryrefslogtreecommitdiffstats
path: root/share/man/man3/pthread_yield.3
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2006-09-18 18:07:49 +0000
committermaxim <maxim@FreeBSD.org>2006-09-18 18:07:49 +0000
commit553cc2593a5f712414d89c5a2187f7e3d6669964 (patch)
treed93d64a32340cc6276e4a1a2cbf421f8fbae1130 /share/man/man3/pthread_yield.3
parentbd41b31cc8221037305f1a7373d2144ca67e5942 (diff)
downloadFreeBSD-src-553cc2593a5f712414d89c5a2187f7e3d6669964.zip
FreeBSD-src-553cc2593a5f712414d89c5a2187f7e3d6669964.tar.gz
o Add pthread_yield.3 man page.
PR: docs/100083 Reviewed by: deischen, ru Obtained from: OpenBSD MFC after: 2 weeks
Diffstat (limited to 'share/man/man3/pthread_yield.3')
-rw-r--r--share/man/man3/pthread_yield.331
1 files changed, 31 insertions, 0 deletions
diff --git a/share/man/man3/pthread_yield.3 b/share/man/man3/pthread_yield.3
new file mode 100644
index 0000000..28f6452
--- /dev/null
+++ b/share/man/man3/pthread_yield.3
@@ -0,0 +1,31 @@
+.\" $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
+.Lb libthr
+.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 .
OpenPOWER on IntegriCloud