MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
PTHREADRWLOCKDESTRO... BSD Library Functions Manual PTHREADRWLOCKDESTRO...

NAME
     pthreadrwlockdestroy -- destroy a read/write lock

SYNOPSIS
     ##include <>

     int
     pthreadrwlockdestroy(pthreadrwlockt *lock);

DESCRIPTION
     The pthreadrwlockdestroy() function is used to destroy a read/write
     lock previously created with pthreadrwlockinit().

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

SEE ALSO
     pthreadrwlockinit(3)

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

ERORS
     The pthreadrwlockdestroy() function will fail if:

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

     The pthreadrwlockdestroy() 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.

HISTORY
     The pthreadrwlockdestroy() function first appeared in FreeBSD 3.0.

BSD                             August 4, 1998                             BSD
Darwin Mac OS X man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™