Why not directly using pthread_rwlock_t ?
Why not directly using pthread_rwlock_t ?