Lines Matching refs:SAFE_PTHREAD
250 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \
262 Mutex::~Mutex() { if (destroy_) SAFE_PTHREAD(pthread_rwlock_destroy); }
263 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock); }
264 void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
269 void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock); }
270 void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
271 #undef SAFE_PTHREAD
275 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \
287 Mutex::~Mutex() { if (destroy_) SAFE_PTHREAD(pthread_mutex_destroy); }
288 void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock); }
289 void Mutex::Unlock() { SAFE_PTHREAD(pthread_mutex_unlock); }
296 #undef SAFE_PTHREAD