PTHREAD_RWLOCKATTR_SETPSHARED(3) | Library Functions Manual | PTHREAD_RWLOCKATTR_SETPSHARED(3) |
pthread_rwlockattr_setpshared
—
set the process shared attribute
#include
<pthread.h>
int
pthread_rwlockattr_setpshared
(pthread_rwlockattr_t
*attr, int
pshared);
The
pthread_rwlockattr_setpshared
()
function sets the process shared attribute of attr to
the value referenced by pshared.
pshared may be one of two values:
If successful, the
pthread_rwlockattr_setpshared
() function will return
zero. Otherwise an error number will be returned to indicate the error.
pthread_rwlockattr_setpshared
() will fail
if:
EINVAL
]The pthread_rwlockattr_setpshared
()
function is expected to conform to Version 2 of the
Single UNIX Specification (“SUSv2”).
The pthread_rwlockattr_setpshared
()
function first appeared in FreeBSD 3.0 and
OpenBSD 2.5.
The PTHREAD_PROCESS_SHARED attribute is not supported.
June 5, 2013 | OpenBSD-current |