diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:54:44 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:54:44 -0400 |
| commit | a9157ce950dfe2fc30795d43b9d79b9d1bffc48b (patch) | |
| tree | 9df484304b560466d145e662c1c254ff0e9ae0ba /static/openbsd/man3/pthread_yield.3 | |
| parent | 160aa82b2d39c46ad33723d7d909cb4972efbb03 (diff) | |
docs: Added All OpenBSD Manuals
Diffstat (limited to 'static/openbsd/man3/pthread_yield.3')
| -rw-r--r-- | static/openbsd/man3/pthread_yield.3 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/static/openbsd/man3/pthread_yield.3 b/static/openbsd/man3/pthread_yield.3 new file mode 100644 index 00000000..66ee0988 --- /dev/null +++ b/static/openbsd/man3/pthread_yield.3 @@ -0,0 +1,28 @@ +.\" $OpenBSD: pthread_yield.3,v 1.6 2025/06/07 00:16:52 schwarze Exp $ +.\" +.\" PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> +.\" +.Dd $Mdocdate: June 7 2025 $ +.Dt PTHREAD_YIELD 3 +.Os +.Sh NAME +.Nm pthread_yield +.Nd yield control of the current thread +.Sh SYNOPSIS +.Lb libpthread +.In pthread.h +.Ft void +.Fn pthread_yield "void" +.Sh DESCRIPTION +The +.Fn pthread_yield +function resets the accumulated time slice of the current thread and then +enters the thread scheduler, which resumes execution of the next thread ready +to run. +If no other thread is ready to run, control returns to the current thread. +.Sh SEE ALSO +.Xr pthreads 3 +.Sh STANDARDS +.Fn pthread_yield +is a non-portable (but quite common) extension to +.St -p1003.1-2001 . |
