|
|
|
@ -99,7 +99,9 @@ void RWMutex::ReadLock() { PthreadCall("read lock", pthread_rwlock_rdlock(&mu_)) |
|
|
|
|
|
|
|
|
|
void RWMutex::WriteLock() { PthreadCall("write lock", pthread_rwlock_wrlock(&mu_)); } |
|
|
|
|
|
|
|
|
|
void RWMutex::Unlock() { PthreadCall("unlock", pthread_rwlock_unlock(&mu_)); } |
|
|
|
|
void RWMutex::ReadUnlock() { PthreadCall("read unlock", pthread_rwlock_unlock(&mu_)); } |
|
|
|
|
|
|
|
|
|
void RWMutex::WriteUnlock() { PthreadCall("write unlock", pthread_rwlock_unlock(&mu_)); } |
|
|
|
|
|
|
|
|
|
void InitOnce(OnceType* once, void (*initializer)()) { |
|
|
|
|
PthreadCall("once", pthread_once(once, initializer)); |
|
|
|
|