Searched refs:CERES_SAFE_PTHREAD (Results 1 – 1 of 1) sorted by relevance
229 #define CERES_SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ macro237 Mutex::~Mutex() { CERES_SAFE_PTHREAD(pthread_rwlock_destroy); } in ~Mutex()238 void Mutex::Lock() { CERES_SAFE_PTHREAD(pthread_rwlock_wrlock); } in Lock()239 void Mutex::Unlock() { CERES_SAFE_PTHREAD(pthread_rwlock_unlock); } in Unlock()245 void Mutex::ReaderLock() { CERES_SAFE_PTHREAD(pthread_rwlock_rdlock); } in ReaderLock()246 void Mutex::ReaderUnlock() { CERES_SAFE_PTHREAD(pthread_rwlock_unlock); } in ReaderUnlock()247 #undef CERES_SAFE_PTHREAD251 #define CERES_SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ macro259 Mutex::~Mutex() { CERES_SAFE_PTHREAD(pthread_mutex_destroy); } in ~Mutex()260 void Mutex::Lock() { CERES_SAFE_PTHREAD(pthread_mutex_lock); } in Lock()[all …]