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

  man pages->OpenBSD man pages -> pthread_rwlock_destroy (3)              
Title
Content
Arch
Section
 

Contents


PTHREAD_RWLOCK_DESTROY(3)      OpenBSD     Programmer's     ManualPTHREAD_RWLOCK_DESTROY(3)

NAME    [Toc]    [Back]

     pthread_rwlock_destroy - destroy a read/write lock

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int
     pthread_rwlock_destroy(pthread_rwlock_t *lock);

DESCRIPTION    [Toc]    [Back]

     The pthread_rwlock_destroy() function is used to  destroy  a
read/write
     lock previously created with pthread_rwlock_init().

RETURN VALUES    [Toc]    [Back]

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

ERRORS    [Toc]    [Back]

     The pthread_rwlock_destroy() function will fail if:

     [EPERM]       The caller does not have the privilege to perform the operation.


     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    [Toc]    [Back]

      
      
     pthread_rwlock_init(3)

STANDARDS    [Toc]    [Back]

     The pthread_rwlock_destroy() function is expected to conform
to Version 2
     of the Single UNIX Specification.

HISTORY    [Toc]    [Back]

     The  pthread_rwlock_destroy()  function  first  appeared  in
FreeBSD 3.0 and
     OpenBSD 2.5.

OpenBSD      3.6                          August      4,     1998
[ 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
tis_read_lock Tru64 Acquires a read-write lock for read access
pthread_rwlock_rdlock Tru64 Acquires a read-write lock for read access
pthread_rwlock_unlock FreeBSD release a read/write lock
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service