Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2023 00:47:25 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 578e91188081 - stable/14 - pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared
Message-ID:  <202310290047.39T0lPch011654@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=578e91188081525fe45abd00cd751600190b4688

commit 578e91188081525fe45abd00cd751600190b4688
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-10-23 22:54:54 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-10-29 00:47:05 +0000

    pthread_mutexattr_init(3): describe pthread_mutexattr_{set,get}pshared
    
    PR:     274678
    
    (cherry picked from commit 2152c4e2db88b9264c6400f2510440465d39c7b8)
---
 share/man/man3/pthread_mutexattr.3 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/share/man/man3/pthread_mutexattr.3 b/share/man/man3/pthread_mutexattr.3
index 8e457b87dc8f..30537b9a9f86 100644
--- a/share/man/man3/pthread_mutexattr.3
+++ b/share/man/man3/pthread_mutexattr.3
@@ -132,6 +132,26 @@ all threads waiting on any mutex owned by this thread.
 .El
 .Pp
 The
+.Fn pthread_mutexattr_setpshared
+function sets the process-shared attribute of
+.Fa attr
+to the value specified in
+.Fa pshared .
+The argument
+.Fa pshared
+may have one of the following values:
+.Bl -tag -width ".Dv PTHREAD_PROCESS_PRIVATE"
+.It Dv PTHREAD_PROCESS_PRIVATE
+The mutex may only be used by threads in the same process as the one
+that created the object.
+.It Dv PTHREAD_PROCESS_SHARED
+The mutex may be used by
+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
+.Pp
+The
 .Fn pthread_mutexattr_setrobust
 function specifies robustness attribute of the mutex.
 Possible values for the



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310290047.39T0lPch011654>