| Main index | Section 3 | Options |
#include <pthread.h>
The results are undefined if the calling thread already holds the lock at the time the call is made.
| [EBUSY] | |
| The calling thread is not able to acquire the lock without blocking. | |
The pthread_rwlock_wrlock() and pthread_rwlock_trywrlock() functions may fail if:
| [EDEADLK] | |
| The calling thread already owns the read/write lock (for reading or writing). | |
| [EINVAL] | |
| The value specified by lock is invalid. | |
| [ENOMEM] | |
| Insufficient memory exists to initialize the lock (applies to statically initialized locks only). | |
| PTHREAD_RWLOCK_WRLOCK (3) | August 4, 1998 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. | ” |
| — The Unix Haters' handbook | ||