Lines Matching refs:SAFE_PTHREAD
216 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \
224 Mutex::~Mutex() { SAFE_PTHREAD(pthread_rwlock_destroy); }
225 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock); }
226 void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
232 void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock); }
233 void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
234 #undef SAFE_PTHREAD
239 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \
247 Mutex::~Mutex() { SAFE_PTHREAD(pthread_mutex_destroy); }
248 void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock); }
249 void Mutex::Unlock() { SAFE_PTHREAD(pthread_mutex_unlock); }
256 #undef SAFE_PTHREAD