Return Value
pthread_rwlock_tryrdlock() returns zero if the lock
for reading on the read-write lock object referenced by rwlock is acquired. Otherwise an error number is returned to indicate
the error.
-
EBUSY
-
The read-write lock could not be
acquired for reading because a writer holds the lock or was blocked on it.