From a4803e53aa7bed4d40aea8e40c21460ca48fe66a Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 3 May 2023 18:19:00 +0200 Subject: sched_yield.2: HISTORY: POSIX.1-2008 makes this non-optional Signed-off-by: Alejandro Colomar --- man2/sched_yield.2 | 18 ++++++++++-------- 1 file 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 . +.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 () -- cgit v1.2.3