From nobody Mon Jul 27 16:17:59 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h83fb3zSnz6nBZW for ; Mon, 27 Jul 2026 16:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h83fb28rGz436S for ; Mon, 27 Jul 2026 16:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785169079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bKebfUuAqWK3DMLHn9JzXD14EBG/AeMzARUw69A0u1g=; b=kE0SQZR3gefT3ePFq49/ubJAjkykz2B7g8b3MfsBJ6bere83RSwkOZNuGTyaNJDg2RZnkN 2c+3PXsC7biVWhN9wjX87uNt0lM7m7NtvHlKLkCJgUd6aoJS64/xymKEju366UfQnw0COM lg3YrmPO6vBESdUamrToBphkrVMk08soLmCmKQSC7ykm6KZYhUiNWy7DRrcg3t2j7F8mHq x4gLVvgCJNMEuXWPcbxQkTp0D03IuUk6lmraXF53fE+cknPDT+G7MSWUYFe3p61BJTr7T9 1F/5AzdvENu9w+oI5oXxm2LHwm6u+Aawn4Wnu98Ln4AlZO9aWuC1yFzlAd4bXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785169079; a=rsa-sha256; cv=none; b=Af+qIwwhjMZ8k5DmeDYWG1PRbDol/VDAWwaItoCEJ576B6VFPzRcGe6BHBeyYNi126t2aR VQkLHjd27uh7FKAexc/qT8V0W6WHDt+ZpVlR7E1FxU7CpZa6pwU692nVjWQB+T3buFOoBk KEemR4ig48SJ2NY2OQjwtWyyifMrlAytyN7h2Wg4I4jtFxKLd3ClGwMzBAoIuzqq8iMEs4 2G7Ah8qr+eVvHCOUlUCwHLh8xuNtBi98kCDvOcYMwzI5MCwy80yOxd/vJ1V+vUgp3wm1Ff EfgHX2tNnfOYh+CNYTUx+MYcdlIcbHFClnOuwJxQDyZULYJfPg0No1S+eOQrYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785169079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bKebfUuAqWK3DMLHn9JzXD14EBG/AeMzARUw69A0u1g=; b=BuWFq7/ReH5E5ML6K6b6aPAzOCsYJufS4WB+f8MR19/omCuVWn/lqUYSkpACKakiaasP2g XBJASTahX2xLyOr+js6q4Ms+uNcMLYPsaOykMdePxcQGse80TPhscl6p9jY4GBFT4eT8tX FQ02b02DatC5zWv8RhnNx3s5QjuVjo/6J7OiGIC0UwuYz9TE1W/+8OZjpXMnTSHpJaY2wK 7uSWDu//Iy9ptlcNo08MyCoJtJ5H+1ChrY60Ir1/vq4UGh2ooLn49BK5MzZRXm5SlVa+MH Q5M0drAT8i+7Po1Tx42wT0IY2EsyY5c7V5Ns3nS2fk2SOTIwMTLAE6pDyLX1iA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h83fb0hNwz1Ff6 for ; Mon, 27 Jul 2026 16:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1d92f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 27 Jul 2026 16:17:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: e7015a3834ab - main - pthread_cond_timedwait.3: document pthread_cond_clockwait(3) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: e7015a3834abe0956e9a8ec6ec4b8e75ea7d71ab Auto-Submitted: auto-generated Date: Mon, 27 Jul 2026 16:17:59 +0000 Message-Id: <6a6784b7.1d92f.57382f92@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e7015a3834abe0956e9a8ec6ec4b8e75ea7d71ab commit e7015a3834abe0956e9a8ec6ec4b8e75ea7d71ab Author: Konstantin Belousov AuthorDate: 2026-07-25 23:56:03 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-27 16:17:29 +0000 pthread_cond_timedwait.3: document pthread_cond_clockwait(3) Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58463 --- 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 .