/
nerfur
/
openbsd-src
Обзор
Документация
Войти
/
nerfur
/
openbsd-src
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/libpthread/man/pthread_yield.3
28 строк
748 B
schwarze
.Lb libpthread ; significant help and OK from guenther@ and tedu@
07 июн 2025, 03:16
07 июн 2025, 03:16
288e47d
Код
Авторство
О чём код?
.\" $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 .