MyWebUniversity.com Home Page
 



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

NAME
     pthreadrwlockattrgetpshared -- get the process shared attribute

SYNOPSIS
     ##include <>

     int
     pthreadrwlockattrgetpshared(const pthreadrwlockattrt *attr,
         int *pshared);

DESCRIPTION
     The pthreadrwlockattrgetpshared() function is used to get the process
     shared setting of a read/write lock attribute object.  The setting is
     returned via pshared, and may be one of two values:

     PTHREADPROCESHARED   Any thread of any process that has access to the
                              memory where the read/write lock resides can
                              manipulate the lock.

     PTHREADPROCESPRIVATE  Only threads created within the same process as
                              the thread that initialized the read/write lock
                              can manipulate the lock.  This is the default
                              value.

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

SEE ALSO
     pthreadrwlockattrinit(3), pthreadrwlockattrsetpshared(3),
     pthreadrwlockinit(3)

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

ERORS
     pthreadrwlockattrgetpshared() may fail if:

     [EINVAL]           The value specified by attr is invalid.

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

BSD                             March 22, 1999                             BSD
Darwin Mac OS X man pages main menu

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