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

  man pages->FreeBSD man pages -> pthread_rwlock_unlock (3)              
Title
Content
Arch
Section
 

Contents


PTHREAD_RWLOCK_UNLO... FreeBSD Library Functions Manual PTHREAD_RWLOCK_UNLO...

NAME    [Toc]    [Back]

     pthread_rwlock_unlock -- release a read/write lock

LIBRARY    [Toc]    [Back]

     Reentrant C Library (libc_r, -lc_r)

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int
     pthread_rwlock_unlock(pthread_rwlock_t *lock);

DESCRIPTION    [Toc]    [Back]

     The pthread_rwlock_unlock() function is used to release the read/write
     lock previously obtained by pthread_rwlock_rdlock(),
     pthread_rwlock_wrlock(), pthread_rwlock_tryrdlock(), or
     pthread_rwlock_trywrlock().

RETURN VALUES    [Toc]    [Back]

     If successful, the pthread_rwlock_unlock() function will return zero.
     Otherwise an error number will be returned to indicate the error.

     The results are undefined if lock is not held by the calling thread.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_rwlock_rdlock(3), pthread_rwlock_wrlock(3)

STANDARDS    [Toc]    [Back]

     The pthread_rwlock_unlock() function is expected to conform to Version 2
     of the Single UNIX Specification (``SUSv2'').

ERRORS    [Toc]    [Back]

     The pthread_rwlock_unlock() function may fail if:

     [EINVAL]		The value specified by lock is invalid.

     [EPERM]		The current thread does not own the read/write lock.

HISTORY    [Toc]    [Back]

     The pthread_rwlock_unlock() function first appeared in FreeBSD 3.0.


FreeBSD 5.2.1			August 4, 1998			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
tis_read_trylock Tru64 Attempts to acquire a read-write lock for read access and does not wait if the lock cannot be immedi...
pthread_rwlock_wrlock IRIX lock a read-write lock object for writing
pthread_rwlock_rdlock IRIX lock a read-write lock object for reading
tis_write_unlock Tru64 Unlocks the specified read-write lock that was acquired for write access
tis_read_unlock Tru64 Unlocks a read-write lock that was acquired for read access
pthread_rwlock_wrlock Tru64 Acquires a read-write lock for write access
tis_write_lock Tru64 Acquires the specified read-write lock for write access
pthread_rwlock_rdlock Tru64 Acquires a read-write lock for read access
tis_read_lock Tru64 Acquires a read-write lock for read access
pthread_rwlockattr_destroy OpenBSD destroy a read/write lock
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service