pthread_rwlock_init.3t (2010 09)
p
pthread_rwlock_init(3T) pthread_rwlock_init(3T)
(Pthread Library)
If any of the following occur, the
pthread_rwlock_destroy()
function returns the corresponding
error number:
[EBUSY] rwlock is currently locked or being used by other threads.
[EINVAL] The value specified by rwlock is invalid.
WARNINGS
The space for the read-write lock must to be allocated before calling
pthread_rwlock_init()
.
Undefined behavior may result if the process-shared attribute of attr is
PTHREAD_PROCESS_SHARED
and the space allocated for the read-write lock is not accessible to cooperating threads.
AUTHOR
pthread_rwlock_init()
and pthread_rwlock_destroy()
were developed by X/Open.
SEE ALSO
pthread_rwlock_rdlock(3T), pthread_rwlock_tryrdlock(3T), pthread_rwlock_trywrlock(3T),
pthread_rwlock_unlock(3T), pthread_rwlock_wrlock(3T).
STANDARDS CONFORMANCE
pthread_rwlock_init()
:X/Open.
pthread_rwlock_destroy()
:X/Open.
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010