From nobody Sun Oct 29 00:48:01 2023 X-Original-To: dev-commits-src-all@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 4SHyS13g6vz4yFyr; Sun, 29 Oct 2023 00:48:01 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SHyS12pwZz3RFf; Sun, 29 Oct 2023 00:48:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540481; 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=OhaNL7Z5lbAswzuiqvrWJv0YnfG2AT5H/F1UKowgV0w=; b=di7uxLjSfoQr4HcSm6AmoBEyDkRJ4DSa8pacn58um+6Qx+jBS875YFU1HJA4ReOZsKvj+F KV6aE2vAauFRTdRGPP6EXwqd2caDvIDSZPqfsVHV+O6VJ8YkBaP35fjLouz4SuuJbH+Z5Y T+EufAPXGFFIFFr6ADh/ylqjyzV8juuu1QtkCq1dmQ8owk/BkgE+UBsjDX/KFYS4ucI892 XycvVwPGVLIfwfqm9XMu/fL+xy3C3L137+s0vb56IfZz76RelSRQv8O+/q2Bb2pvE/UwP+ j7PSkvbQWxrwmnvPdP8HpuCT6nM46CEun/8tfKHv2Lme+LkPGhDjGa5LX1CQEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540481; 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=OhaNL7Z5lbAswzuiqvrWJv0YnfG2AT5H/F1UKowgV0w=; b=KRrAjKD/xLsxfVEBD5T2gug+xrq+EnfW0MV68bh/QwgE3a1KTKY1NXWRAsPdvfjOsYVTpg oCQGGByv4UJabWNCj3bmIno47CL6obedqowXL/sbMxUd+koBBupTq8dscj/FINNf0rYocC 5Gqn8/d3YwDXF3CxhAzsgdtKN9ZeBnRsdinj5XW4O/haQLvfxWsqWcuGGxpIpy3+95fDtg oTQ+f3+3EwhvIXiiffUf+AzMxSXaPSLC5rN/wd+AzBFwZ0f+tPBZMTHlKAffN40A8xLWiJ x7WpQXH3wlDC0N8j6bDcONUcIrPDEbpdnPN4PY+z0NQdZyA13mEgB2p83l6tWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698540481; a=rsa-sha256; cv=none; b=c4D2+IsbJMFV8qJJ3CRops7VzhOebFGx9n7ORnnNVkaqFPXvhErUn+VmjM8YkYSRiRYG9b kULEJM7BfJc1/l07Kr3hhcZHU6XI0ic7y2e31pZ03+kWajCWmXqtEiTuMtRcSSKJlceIPI herHv/TC3zgTLLoPe1WB3vU7zyTgU8Ni0aVPHwyFc+EHrMlr1BINtesxSUvwWaC5pzMXuq RBpNEdoW3rdXy+BMudjvHl2C95aUhu8iWiS1LExMVqdv/lb9XVk+RMS1cOS2tP7XONWZJZ 7ryv9cqoNrxqciZZb/PVqB7rz/KLp+9SE82ovZOBf5jgYsne2iv2Pyvv+uGvEQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SHyS11d6Pz3G0; Sun, 29 Oct 2023 00:48:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39T0m1b9011954; Sun, 29 Oct 2023 00:48:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39T0m1w3011951; Sun, 29 Oct 2023 00:48:01 GMT (envelope-from git) Date: Sun, 29 Oct 2023 00:48:01 GMT Message-Id: <202310290048.39T0m1w3011951@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: c1429f5f9b42 - stable/13 - pthread_mutexattr(3), _condattr(3): reference libthr(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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org 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/13 X-Git-Reftype: branch X-Git-Commit: c1429f5f9b426aa1358d17e5349013da9075fd33 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c1429f5f9b426aa1358d17e5349013da9075fd33 commit c1429f5f9b426aa1358d17e5349013da9075fd33 Author: Konstantin Belousov AuthorDate: 2023-10-23 23:03:42 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-29 00:47:44 +0000 pthread_mutexattr(3), _condattr(3): reference libthr(3) (cherry picked from commit 4f03a2cae8ae96446064da4e8a533ab24172bdcb) --- share/man/man3/pthread_condattr.3 | 7 ++++++- share/man/man3/pthread_mutexattr.3 | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/share/man/man3/pthread_condattr.3 b/share/man/man3/pthread_condattr.3 index f11b50070d3d..f3b1d3639827 100644 --- a/share/man/man3/pthread_condattr.3 +++ b/share/man/man3/pthread_condattr.3 @@ -24,7 +24,7 @@ .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -.Dd May 31, 2016 +.Dd October 27, 2023 .Dt PTHREAD_CONDATTR 3 .Os .Sh NAME @@ -112,6 +112,10 @@ threads in the same process as the one that created the object. The condition variable it is attached to may be accessed by threads in processes other than the one that created the object. .El +See +.Xr libthr 3 +for details of the implementation of shared condition variables, +and their limitations. .Sh RETURN VALUES If successful, these functions return 0. Otherwise, an error number is returned to indicate the error. @@ -153,6 +157,7 @@ The value specified in is not one of the allowed values. .El .Sh SEE ALSO +.Xr libthr 3 , .Xr pthread_cond_init 3 , .Xr pthread_cond_timedwait 3 .Sh STANDARDS diff --git a/share/man/man3/pthread_mutexattr.3 b/share/man/man3/pthread_mutexattr.3 index 30537b9a9f86..8f4d0d9a06a4 100644 --- a/share/man/man3/pthread_mutexattr.3 +++ b/share/man/man3/pthread_mutexattr.3 @@ -29,7 +29,7 @@ .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -.Dd October 1, 2021 +.Dd October 27, 2023 .Dt PTHREAD_MUTEXATTR 3 .Os .Sh NAME @@ -150,6 +150,10 @@ threads in processes other than the one that created the object, assuming other processes share access to the memory where the mutex was allocated. .El +See +.Xr libthr 3 +for details of the implementation of the shared mutexes, +and their limitations. .Pp The .Fn pthread_mutexattr_setrobust @@ -334,6 +338,7 @@ Invalid value for .Fa attr . .El .Sh SEE ALSO +.Xr libthr 3 , .Xr pthread_mutex_init 3 .Sh STANDARDS The