#include <pthread.h> int pthread_rwlockattr_init(pthread_rwlockattr_t *attr);Service Program Name: QP0WPTHR
The pthread_rwlockattr_init() function initializes the read/write lock attributes object referred to by attr to the default attributes. The read/write lock attributes object can be used in a call to pthread_rwlock_init() to create a read/write lock.
None.
If pthread_rwlockattr_init() was not successful, the error condition returned usually indicates one of the following errors. Under some conditions, the value returned could indicate an error other than those listed here.
The value specified for the argument is not correct.
See Code disclaimer information for information pertaining to code examples.
See the pthread_rwlockattr_destroy() example.
Top | Pthread APIs | APIs by category |