PTHREAD_RWLOCK_DESTR... NetBSD Library Functions ManualPTHREAD_RWLOCK_DESTR...
NAME
pthread_rwlock_destroy -- destroy a read/write lock
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread.h> int pthread_rwlock_destroy(pthread_rwlock_t *lock);
DESCRIPTION
The pthread_rwlock_destroy() function is used to destroy a read/write lock previously created with pthread_rwlock_init().
RETURN VALUES
If successful, the pthread_rwlock_destroy() function will return zero. Otherwise an error number will be returned to indicate the error.
ERRORS
The pthread_rwlock_destroy() function may fail if: [EBUSY] The system has detected an attempt to destroy the object referenced by lock while it is locked. [EINVAL] The value specified by lock is invalid.
SEE ALSO
pthread_rwlock_init(3), pthread_rwlock_rdlock(3), pthread_rwlock_unlock(3), pthread_rwlock_wrlock(3)
STANDARDS
pthread_rwlock_destroy() conforms to ISO/IEC 9945-1:1996 (``POSIX.1''). NetBSD 5.0.1 January 30, 2003 NetBSD 5.0.1
Powered by man-cgi (2024-08-26). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.