Locks the specified reader-writer lock for reading, if it is available.
#include <pthread.h> int pthread_rwlock_tryrdlock ( pthread_rwlock_t *rwlp);
(IN) Points to the reader-writer lock to lock.
If successful, returns zero; otherwise, returns a nonzero error code:
If the lock is immediately available, the pthread_rwlock_tryrdlock function acquires the lock. If the lock is not available, the function returns immediately with an EBUSY error. It does not block.