From nobody Sun Oct 29 00:47:27 2023 X-Original-To: dev-commits-src-branches@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 4SHyRM2zFWz4yGJ8; Sun, 29 Oct 2023 00:47:27 +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 4SHyRM2Y8Pz3R1d; Sun, 29 Oct 2023 00:47:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540447; 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=yDDBS2UAs5YsuoGC4FbcpQR+CVtQi+bb9MUOkfifxCs=; b=jc4Newu5pXoeyHhes20M/AgnVA98o/rxIN3EqW2w8/cCq3SIc++JmLORtZXvvsQAlh+40t NJWIdOqmQSDxRAn9xBA71Vm7zakgw/2XZRaf9JYIoxKGYfGTAEMWNOONtywwomciJp+tYE ryYnlDqj/3FK5/1dbHrA5Uj46w5O2arClswEL73W+yi2lAY30zELCXFYFq7SXH7ecOG49s NIIlCoWIEGCytEYBMWyWQeFSGVixDMRaxFaPbpD61peLb5AFcIqQ19KlyrHmRSmpquA00E 17aam7K5q1di94caLd3TC/dsj6ZYQJiTbfyDqxETNsxokb70uOOgUVEwA7SFUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698540447; 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=yDDBS2UAs5YsuoGC4FbcpQR+CVtQi+bb9MUOkfifxCs=; b=bPq7MpkMEw1GCAeffsrh4t51+l1hsSXVGo8pt5oqSHZ+jukQqigwKnUillAkngiwbzoobU XKCv3zsLpNINuMrnfKteFs5PSH8y8yqF8dfj+fR5yebEkQCsaGGyPE7sIVA3n5no9KMHgu u0ec+xaztmJYnCDfpIWr1r6+on51jRBw9hsXIgumJXVvzvEK/A05ZQWlzsB4VSOnPUdlKP wKg2Lb1AfIueGQG1ufdTjEgmuesfquOQCv9Wfpn+za2fR58byRaFzR1L7YOCGOQTSipo7T G0gkqoMDaGW5oq12oihGIS3nxVI46gd3x30ATYrXOnZMnODwbVwPNFzQzJPW8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698540447; a=rsa-sha256; cv=none; b=twlLlhe7JkWR9OU/+Juxdd2VcyTTraDo4bTTuSyk3ZLdo+eCtTdgl2/EshMdzrMCoAIQnw dsZUt1ne+0rjwEI6gwiDdTH5Y7+YbRTpWVHb4M8JYXeqsDCBO2U5x0zRpqaFiQvZuP4VTr 14gx1jpRWkuwOoLPednqhMy9k4Qe+GPEs36bJrYBF8VXsNQlSJUrpeKx9djbzSxvGrjP14 O211HtOMl5VwlAtlamUZB8QPRRTERpUKwDs5AZUnw1wz3WkcmP8r516usgzOuJWV87wwqV z4CbJ6gl6ETsidqKRKJhjMqXlSzNzTxhbDGAizJtjeU5HulD7pcohbvWtW2rNA== 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 4SHyRM12ZSz3gZ; Sun, 29 Oct 2023 00:47:27 +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 39T0lRsS011698; Sun, 29 Oct 2023 00:47:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39T0lRPe011695; Sun, 29 Oct 2023 00:47:27 GMT (envelope-from git) Date: Sun, 29 Oct 2023 00:47:27 GMT Message-Id: <202310290047.39T0lRPe011695@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: b23756cc7892 - stable/14 - pthread_mutexattr(3), _condattr(3): reference libthr(3) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/14 X-Git-Reftype: branch X-Git-Commit: b23756cc789213c24c68fdc43a60fc837daec21d Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b23756cc789213c24c68fdc43a60fc837daec21d commit b23756cc789213c24c68fdc43a60fc837daec21d Author: Konstantin Belousov AuthorDate: 2023-10-23 23:03:42 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-29 00:47:05 +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