summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-05-03 18:19:00 +0200
committerAlejandro Colomar <alx@kernel.org>2023-05-03 18:19:00 +0200
commita4803e53aa7bed4d40aea8e40c21460ca48fe66a (patch)
tree89456092376e8bd234a0488e21ff4542dd83b095
parent73f1926d142a26e0ba7bae4dc26808151154bb2e (diff)
sched_yield.2: HISTORY: POSIX.1-2008 makes this non-optional
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/sched_yield.218
1 files changed, 10 insertions, 8 deletions
diff --git a/man2/sched_yield.2 b/man2/sched_yield.2
index f1024762a..bab0f9569 100644
--- a/man2/sched_yield.2
+++ b/man2/sched_yield.2
@@ -38,19 +38,21 @@ always succeeds.
.SH STANDARDS
POSIX.1-2008.
.SH HISTORY
-POSIX.1-2001.
-.SH NOTES
-If the calling thread is the only thread in the highest
-priority list at that time,
-it will continue to run after a call to
-.BR sched_yield ().
+POSIX.1-2001 (but optional).
+POSIX.1-2008.
.PP
-POSIX systems on which
+Before POSIX.1-2008,
+systems on which
.BR sched_yield ()
-is available define
+is available defined
.B _POSIX_PRIORITY_SCHEDULING
in
.IR <unistd.h> .
+.SH NOTES
+If the calling thread is the only thread in the highest
+priority list at that time,
+it will continue to run after a call to
+.BR sched_yield ().
.PP
Strategic calls to
.BR sched_yield ()