er-encoding:content-transfer-encoding; bh=5uqHjgCRjrYc0bXUlVKnvN3s0teGYijJf9b45eiqxzo=; b=f/lzuAjVOy/PMUoJIKn9VHuHklKVT6kHVWvRXGuB2AFDKy/SMBWp3uLaZNFfAAcM4ifIfz 5bwRsfaM8et1W2v7jv8bBweguzEIc9adAcnvjz6FV0nX3jJWnks+CWqcO8kkwUapivZCpB OdsKnCkKKp9MBH+QbPoD5RHwN3zwbHKKQq62nhEzyimP2grjy5AYbdFkkVgFjavX0f/fUl SqxKRh4KFb6C0Hyp2r6FNeQGh6HcnzdJmpTICbfZsXAgPm92ezC5aWifC/0hrP4+Ta3BH/ WkmBuZ1CSDcZ1Vcs4enM1gdRbsncOFqVK8/s+Iezps7SugrxyN0shrZaNlacVw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hCyBS0qTszdQj for ; Mon, 03 Aug 2026 00:25:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c70b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 03 Aug 2026 00:25:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d62a413e76bd - stable/15 - pthread_cond_timedwait.3: document pthread_cond_clockwait(3) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: d62a413e76bdfc8a9c92d4c5b5fea89bb132811c Auto-Submitted: auto-generated Date: Mon, 03 Aug 2026 00:25:36 +0000 Message-Id: <6a6fe000.1c70b.662a4f57@gitrepo.freebsd.org> The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d62a413e76bdfc8a9c92d4c5b5fea89bb132811c commit d62a413e76bdfc8a9c92d4c5b5fea89bb132811c Author: Konstantin Belousov AuthorDate: 2026-07-25 23:56:03 +0000 Commit: Konstantin Belousov CommitDate: 2026-08-03 00:23:17 +0000 pthread_cond_timedwait.3: document pthread_cond_clockwait(3) (cherry picked from commit e7015a3834abe0956e9a8ec6ec4b8e75ea7d71ab) --- share/man/man3/Makefile | 1 + share/man/man3/pthread_cond_timedwait.3 | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/share/man/man3/Makefile b/share/man/man3/Makefile index cae79b8f8182..2a4dbc426d05 100644 --- a/share/man/man3/Makefile +++ b/share/man/man3/Makefile @@ -510,6 +510,7 @@ PTHREAD_MLINKS+=pthread_condattr.3 pthread_condattr_destroy.3 \ pthread_condattr.3 pthread_condattr_setclock.3 \ pthread_condattr.3 pthread_condattr_getpshared.3 \ pthread_condattr.3 pthread_condattr_setpshared.3 +PTHREAD_MLINKS+=pthread_cond_timedwait.3 pthread_cond_clockwait.3 PTHREAD_MLINKS+=pthread_getconcurrency.3 pthread_setconcurrency.3 PTHREAD_MLINKS+=pthread_multi_np.3 pthread_single_np.3 PTHREAD_MLINKS+=pthread_mutexattr.3 pthread_mutexattr_destroy.3 \ diff --git a/share/man/man3/pthread_cond_timedwait.3 b/share/man/man3/pthread_cond_timedwait.3 index 28cc33da1ca2..5a47abed7d99 100644 --- a/share/man/man3/pthread_cond_timedwait.3 +++ b/share/man/man3/pthread_cond_timedwait.3 @@ -41,10 +41,20 @@ .Fa "pthread_mutex_t *mutex" .Fa "const struct timespec *abstime" .Fc +.In time.h +.Ft int +.Fo pthread_cond_clockwait +.Fa "pthread_cond_t *cond" +.Fa "pthread_mutex_t *mutex" +.Fa "clockid_t clockid" +.Fa "const struct timespec *abstime" +.Fc .Sh DESCRIPTION The .Fn pthread_cond_timedwait -function atomically blocks the current thread waiting on the condition +and +.Fn pthread_cond_clockwait +functions atomically blocks the current thread waiting on the condition variable specified by .Fa cond , and releases the mutex specified by @@ -59,10 +69,22 @@ time specified in and the current thread reacquires the lock on .Fa mutex . .Pp -The clock used to measure +The +.Fn pthread_cond_clockwait +function is identical to +.Fn pthread_cond_timedwait , +except in the way the clock to measure time-out is named. +For the +.Fn pthread_cond_timedwait +function, the clock used to measure .Fa abstime can be specified during creation of the condition variable using .Xr pthread_condattr_setclock 3 . +For the +.Fn pthread_cond_clockwait +function, the clock is specified by the +.Fa clockid +argument. .Sh RETURN VALUES If successful, the .Fn pthread_cond_timedwait @@ -101,3 +123,9 @@ The .Fn pthread_cond_timedwait function conforms to .St -p1003.1-96 . +The +.Fn pthread_cond_clockwait +function conforms to +.St -p1003.1-2024 +and appeared in +.Fx 16.0 .