*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> pthread_rwlock_unlock (3p)              


pthread_rwlock_unlock(3P)			     pthread_rwlock_unlock(3P)

NAME    [Toc]    [Back]

     pthread_rwlock_unlock - unlock a read-write lock object

C SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int pthread_rwlock_unlock(pthread_rwlock_t	*rwlock);

DESCRIPTION    [Toc]    [Back]

     Read-write	locks allow a thread to	exclusively lock some shared data
     while updating that data, or allow	any number of threads to have
     simultaneous read-only access to the data.	 The pthread_rwlock_unlock()
     function releases a read or write lock held on the	read-write lock	object
     referenced	by rwlock.  If this function is	called to release a read lock
     and there are other read locks currently held on the lock object, the
     lock object remains in the	read locked state.  If this function is	called
     to	release	the last read or write lock for	this lock object, the lock is
     released.	When released, if there	are both readers and writers of	the
     same priority waiting for the read-write lock, writers will be scheduled
     before readers.

DIAGNOSTICS    [Toc]    [Back]

     This function returns zero.

SEE ALSO    [Toc]    [Back]

     pthread_rwlock_init(3P), pthread_rwlock_rdlock(3P),
     pthread_rwlock_wrlock(3P),	pthread_rwlockattr_init(3P),

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pthread_rwlock_unlock Tru64 Unlock a read-write lock
pthread_rwlock_rdlock IRIX lock a read-write lock object for reading
pthread_rwlock_wrlock IRIX lock a read-write lock object for writing
pthread_rwlock_destroy Tru64 Destroys a read-write lock object
tis_rwlock_init Tru64 Initializes a read-write lock object
tis_rwlock_destroy Tru64 Destroys the specified read-write lock object
pthread_rwlock_init Tru64 Initializes a read-write lock object
pthread_rwlockattr_init Tru64 Initialize a read-write lock attributes object
tis_read_trylock Tru64 Attempts to acquire a read-write lock for read access and does not wait if the lock cannot be immedi...
tis_write_unlock Tru64 Unlocks the specified read-write lock that was acquired for write access
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service