Searched defs:SAFE_PTHREAD (Results 1 - 1 of 1) sorted by relevance

/external/gflags/src/
H A Dmutex.h252 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ macro
264 Mutex::~Mutex() { if (destroy_) SAFE_PTHREAD(pthread_rwlock_destroy); }
265 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock); }
266 void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
271 void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock); }
272 void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock); }
273 #undef SAFE_PTHREAD macro
277 #define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ macro
289 Mutex::~Mutex() { if (destroy_) SAFE_PTHREAD(pthread_mutex_destroy); }
290 void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_loc
298 #undef SAFE_PTHREAD macro
[all...]

Completed in 155 milliseconds