29 pthread_rwlock_init(&
_rwlock, NULL);
34 pthread_rwlock_destroy(&
_rwlock);
43 ret = pthread_rwlock_tryrdlock(&_rwlock);
47 ret = pthread_rwlock_trywrlock(&_rwlock);
57 throw MutexException(
"The mutex could not be acquired because it was already locked.");
66 pthread_rwlock_rdlock(&_rwlock);
70 pthread_rwlock_wrlock(&_rwlock);
77 pthread_rwlock_unlock(&
_rwlock);