Query: pthread_rwlock_destroy
OS: osf1
Section: 3
Links: osf1 man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pthread_rwlock_destroy(3) Library Functions Manual pthread_rwlock_destroy(3)NAMEpthread_rwlock_destroy - Destroys a read-write lock object.LIBRARYDECthreads POSIX 1003.1c Library (libpthread.so)SYNOPSIS#include <pthread.h> int pthread_rwlock_destroy( pthread_rwlock_t *rwlock);PARAMETERSAddress of the read-write lock object to be destroyed.DESCRIPTIONThis routine destroys the specified read-write lock object by uninitializing it, and should be called when the object is no longer refer- enced in your program. After this routine is called, DECthreads may reclaim internal storage used by the specified read-write lock object. The effect of subsequent use of the lock is undefined until the lock is reinitialized by another call to pthread_rwlock_init. It is illegal to destroy a locked read-write lock. The results of this routine are unpredictable if the specified read-write lock object does not currently exist or is not initialized. This routine destroys the read-write lock object specified by the rwlock argument and releases any resources that the object used. A destroyed read-write lock object can be reinitialized using the pthread_rwlock_init(3) routine. The results of otherwise referencing a destroyed read-write lock object are undefined.RETURN VALUESIf an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. An attempt was made to destroy the object referenced by rwlock while it is locked or referenced.ERRORSNoneRELATED INFORMATIONFunctions: pthread_rwlock_init(3) Manuals: Guide to DECthreads and Programmer's Guide delim off pthread_rwlock_destroy(3)
Related Man Pages |
---|
pthread_rwlock_destroy(3c) - sunos |
pthread_rwlock_destroy(3) - osf1 |
pthread_rwlock_rdlock(3) - osf1 |
pthread_rwlockattr_destroy(3) - osf1 |
pthread_rwlock_init(3c) - debian |
Similar Topics in the Unix Linux Community |
---|
How can a file be locked for a certain time? |
Problem in system call |
help with C programme to lock remote resources |