From 707da0b58563be2508c8d1bf107568990462ef81 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 10 May 2021 04:19:32 +1200 Subject: [PATCH] pthread_yield.3: Note that this function is deprecated since glibc 2.34 Signed-off-by: Michael Kerrisk --- man3/pthread_yield.3 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man3/pthread_yield.3 b/man3/pthread_yield.3 index 0b67d3a5e..642ea1176 100644 --- a/man3/pthread_yield.3 +++ b/man3/pthread_yield.3 @@ -35,6 +35,9 @@ pthread_yield \- yield the processor .PP Compile and link with \fI\-pthread\fP. .SH DESCRIPTION +.BR Note : +This function is deprecated; see below. +.PP .BR pthread_yield () causes the calling thread to relinquish the CPU. The thread is placed at the end of the run queue for its static @@ -50,6 +53,8 @@ on error, it returns an error number. On Linux, this call always succeeds (but portable and future-proof applications should nevertheless handle a possible error return). +.SH VERSIONS +Since glibc 2.34, this function is marked as deprecated. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7).