pthread_rwlockattr_init(3P)
pthread_rwlockattr_init, pthread_rwlockattr_destroy - initialize/destroy a read-write lock attribute object
As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.
NAME pthread_rwlockattr_init, pthread_rwlockattr_destroy - initialize/destroy a read-write lock attribute object C SYNOPSIS #include <pthread.h> int pthread_rwlockattr_init(pthread_rwlockattr_t *attr); int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr); DESCRIPTION The function pthread_rwlockattr_init() initializes the read-write lock attribute object referenced by attr to the default attribute values. The default sharing value is PTHREAD_PROCESS_PRIVATE. Once a read-write lock attribute object is used to initialize one or more read-write locks, any function that affects the attribute object will not affect the previously initialized read-write locks. pthread_rwlockattr_destroy() uninitializes the read-write lock attribute structure referenced by attr. DIAGNOSTICS These functions return zero. SEE ALSO pthread_rwlock_init(3P), pthread_rwlockattr_setpshared(3P).