17#ifndef PTHREAD_RWLOCK_ATTR_H
18#define PTHREAD_RWLOCK_ATTR_H
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared)
Read whether to share the lock with child processes.
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
Destroy an attribute set.
int pthread_rwlockattr_init(pthread_rwlockattr_t *attr)
Initialize the attribute set with the defaults.
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared)
Set whether to share the lock with child processes.
Attributes for a new reader/writer lock.
int pshared
Whether to share lock with child processes.