| 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.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |