Lines Matching defs:SAFE_PTHREAD
236 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \
248 Mutex::~Mutex() { if (destroy_) SAFE_PTHREAD(pthread_rwlock_destroy); }
249 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock); }
250 void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
253 void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock); }
254 void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
255 #undef SAFE_PTHREAD
259 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \
271 Mutex::~Mutex() { if (destroy_) SAFE_PTHREAD(pthread_mutex_destroy); }
272 void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock); }
273 void Mutex::Unlock() { SAFE_PTHREAD(pthread_mutex_unlock); }
278 #undef SAFE_PTHREAD