Home
last modified time | relevance | path

Searched refs:SAFE_PTHREAD (Results 1 – 1 of 1) sorted by relevance

/external/regex-re2/util/
Dmutex.h106 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0) macro
108 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NULL)); } in Mutex()
109 Mutex::~Mutex() { SAFE_PTHREAD(pthread_rwlock_destroy(&mutex_)); } in ~Mutex()
110 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock(&mutex_)); } in Lock()
111 void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); } in Unlock()
113 void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock(&mutex_)); } in ReaderLock()
114 void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); } in ReaderUnlock()
116 #undef SAFE_PTHREAD
121 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0) macro
123 Mutex::Mutex() { SAFE_PTHREAD(pthread_mutex_init(&mutex_, NULL)); } in Mutex()
[all …]