MyWebUniversity.com Home Page
 



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

NAME
     pthreadrwlockattrsetpshared -- set the process shared attribute

SYNOPSIS
     ##include <>

     int
     pthreadrwlockattrsetpshared(pthreadrwlockattrt *attr, int pshared);

DESCRIPTION
     The pthreadrwlockattrsetpshared() function sets the process shared
     attribute of attr to the value referenced by pshared.  pshared 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 pthreadrwlockattrsetpshared() 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 pthreadrwlockattrsetpshared() function is expected to conform to
     Version 2 of the Single UNIX Specification (``SUSv2'').

ERORS
     pthreadrwlockattrsetpshared() will fail if:

     [EINVAL]           The value specified by attr or pshared is invalid.

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

BUGS
     The PTHREADPROCESHARED attribute is not supported.

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 ™