|
NAMEpthread_rwlock_init —
initialize a read/write lock
LIBRARYPOSIX Threads Library (libpthread, -lpthread)SYNOPSIS#include <pthread.h>
int
DESCRIPTIONThepthread_rwlock_init () function is used to initialize
a read/write lock, with attributes specified by attr. If
attr is NULL, the default read/write lock attributes are
used.
The results of calling
RETURN VALUESIf successful, thepthread_rwlock_init () function will
return zero. Otherwise an error number will be returned to indicate the error.
ERRORSThepthread_rwlock_init () function will fail if:
The SEE ALSOpthread_rwlock_destroy(3), pthread_rwlockattr_init(3), pthread_rwlockattr_setpshared(3)STANDARDSThepthread_rwlock_init () function is expected to
conform to Version 2 of the Single UNIX Specification
(“SUSv2”).
HISTORYThepthread_rwlock_init () function first appeared in
FreeBSD 3.0.
Visit the GSP FreeBSD Man Page Interface. |