pthread_rwlock_destroy man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

pthread_rwlock_destroy(3)			     pthread_rwlock_destroy(3)

       pthread_rwlock_destroy - Destroys a read-write lock object

       #include <pthread.h>

       int pthread_rwlock_destroy(
	       pthread_rwlock_t *rwlock );

       DECthreads POSIX 1003.1c Library (

       Address of the read-write lock object to be destroyed.

       This  routine  destroys	the specified read-write lock object by unini‐
       tializing 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.

       If  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 ref‐
       erenced by rwlock while it is locked or referenced.


       Functions: pthread_rwlock_init(3)

       Manuals: Guide to DECthreads and Programmer's Guide


List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net