int
pthread_rwlockattr_init(
pthread_rwlockattr_t *attr
)
int
pthread_rwlockattr_destroy(
pthread_rwlockattr_t *attr
)
)
function is used to initialize a read/write lock attributes object.
The
pthread_rwlockattr_destroy()
function is used to destroy a read/write lock attribute object
previously created with
pthread_rwlockattr_init(
).
)
and
pthread_rwlockattr_destroy(
)
functions return zero.
Otherwise an error number will be returned to indicate the error.
)
shall fail if:
ENOMEM
]
pthread_rwlockattr_init()
and
pthread_rwlockattr_destroy(
)
may fail if:
EINVAL
]
attr
is invalid.
)
and
pthread_rwlockattr_destroy(
)
functions conform to
ISO/IEC 9945-1:1996 (``POSIX.1'') .