Index of Section 2 Manual Pages
| Interix / SUA | pthread_rwlockattr_destroy.2 | Interix / SUA |
pthread_rwlockattr_destroy(2) pthread_rwlockattr_destroy(2)
pthread_rwlockattr_destroy()
NAME
pthread_rwlockattr_destroy(), pthread_rwlockattr_init() - initialize or
destroy a read-write lock attributes object
SYNOPSIS
#include
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr);
int pthread_rwlockattr_init(pthread_rwlockattr_t *attr);
DESCRIPTION
The pthread_rwlockattr_init(2) function initializes the read-write lock
attributes object referenced by the attr argument with default values.
This object can be used in a call to pthread_rwlock_init(2) to set the
attributes of the read-write lock object when it is initialized.
The pthread_rwlockattr_destroy(2) function destroys the read-write lock
attributes object referenced by the attr argument.
RETURN VALUES
On success, both functions return 0; otherwise, an error code is returned.
ERRORS
The pthread_rwlockattr_destroy() function can fail for the following
reason:
[EINVAL]
The attr argument is invalid.
The pthread_rwlockattr_init() function can fail for the following reason:
[ENOMEM]
Not enough free memory exists to initialize the read-write lock
attributes object.
Neither function returns [EINTR].
SEE ALSO
pthread_rwlock_destroy(2)
pthread_rwlockattr_getpshared(2)
USAGE NOTES
All of these functions are thread safe.
None of these functions are async-signal safe.