pthread_rwlockattr_init(3P) pthread_rwlockattr_init(3P)
pthread_rwlockattr_init, pthread_rwlockattr_destroy - initialize/destroy
a read-write lock attribute object
#include <pthread.h>
int pthread_rwlockattr_init(pthread_rwlockattr_t *attr);
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr);
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.
These functions return zero.
pthread_rwlock_init(3P), pthread_rwlockattr_setpshared(3P).
PPPPaaaaggggeeee 1111 [ Back ]
|