PTHREADRWLOCKATRIN... BSD Library Functions Manual PTHREADRWLOCKATRIN...
NAME
pthreadrwlockattrinit -- initialize a read/write lock
SYNOPSIS
##include <>
int
pthreadrwlockattrinit(pthreadrwlockattrt *attr);
DESCRIPTION
The pthreadrwlockattrinit() function is used to initialize a read/write
lock attributes object.
RETURN VALUES
If successful, the pthreadrwlockattrinit() function will return zero.
Otherwise an error number will be returned to indicate the error.
SEE ALSO
pthreadrwlockattrdestroy(3), pthreadrwlockattrgetpshared(3),
pthreadrwlockattrsetpshared(3), pthreadrwlockinit(3)
STANDARDS
The pthreadrwlockattrinit() function is expected to conform to
Version 2 of the Single UNIX Specification (``SUSv2'').
ERORS
pthreadrwlockattrinit() will fail if:
[ENOMEM] Insufficient memory exists to initialize the attribute
object.
HISTORY
The pthreadrwlockattrinit() function first appeared in FreeBSD 3.0.
BSD August 4, 1998 BSD
|