VMS Help
POSIX Threads, PTHREAD routines, pthread_rwlockattr_init
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Initializes a read-write lock attributes object.
#include <pthread.h>
int
pthread_rwlockattr_init (
pthread_rwlockattr_t *attr);
attr
Address of the read-write lock attributes object to be
initialized.
This routine initializes the read-write lock attributes object
referenced by attr and sets its attributes with default values.
The results of calling this routine are undefined if attr
references an already initialized read-write lock attributes
object.
After an initialized read-write lock attributes object has been
used to initialize one or more read-write lock objects, any
operation on that attributes object (including destruction) has
no effect on those read-write lock objects.
If an error condition occurs, this routine returns an integer
value indicating the type of error. Possible return values are as
follows:
Return Description
0 Successful completion
[ENOMEM] Insufficient memory to initialize the read-write lock
attributes object
pthread_rwlockattr_destroy()
pthread_rwlock_init()
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.