diff options
Diffstat (limited to 'usr/src/man/man3c/thr_yield.3c')
-rw-r--r-- | usr/src/man/man3c/thr_yield.3c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/usr/src/man/man3c/thr_yield.3c b/usr/src/man/man3c/thr_yield.3c new file mode 100644 index 0000000000..5e56792945 --- /dev/null +++ b/usr/src/man/man3c/thr_yield.3c @@ -0,0 +1,47 @@ +'\" te +.\" Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved +.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. +.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. +.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] +.TH thr_yield 3C "12 May 1998" "SunOS 5.11" "Standard C Library Functions" +.SH NAME +thr_yield \- yield to another thread +.SH SYNOPSIS +.LP +.nf +cc -mt [ \fIflag\fR... ] \fIfile\fR...[ \fIlibrary\fR... ] +#include <thread.h> + +\fBvoid\fR \fBthr_yield\fR(\fBvoid\fR\fI\fR); +.fi + +.SH DESCRIPTION +.sp +.LP +The \fBthr_yield()\fR function causes the current thread to yield its execution +in favor of another thread with the same or greater priority. +.SH RETURN VALUES +.sp +.LP +The \fBthr_yield()\fR function returns nothing and does not set \fBerrno\fR. +.SH ATTRIBUTES +.sp +.LP +See \fBattributes\fR(5) for descriptions of the following attributes: +.sp + +.sp +.TS +tab() box; +cw(2.75i) |cw(2.75i) +lw(2.75i) |lw(2.75i) +. +ATTRIBUTE TYPEATTRIBUTE VALUE +_ +MT-LevelMT-Safe +.TE + +.SH SEE ALSO +.sp +.LP +\fBthr_setprio\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) |