HomeSort by relevance Sort by last modified time
    Searched refs:SAFE_PTHREAD (Results 1 - 6 of 6) sorted by null

  /external/chromium_org/third_party/re2/util/
mutex.h 110 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0)
112 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NULL)); }
113 Mutex::~Mutex() { SAFE_PTHREAD(pthread_rwlock_destroy(&mutex_)); }
114 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock(&mutex_)); }
115 void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); }
117 void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock(&mutex_)); }
118 void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); }
120 #undef SAFE_PTHREAD
125 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0)
127 Mutex::Mutex() { SAFE_PTHREAD(pthread_mutex_init(&mutex_, NULL));
    [all...]
  /external/regex-re2/util/
mutex.h 106 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0)
108 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NULL)); }
109 Mutex::~Mutex() { SAFE_PTHREAD(pthread_rwlock_destroy(&mutex_)); }
110 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock(&mutex_)); }
111 void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); }
113 void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock(&mutex_)); }
114 void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); }
116 #undef SAFE_PTHREAD
121 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0)
123 Mutex::Mutex() { SAFE_PTHREAD(pthread_mutex_init(&mutex_, NULL));
    [all...]
  /external/chromium_org/third_party/tcmalloc/chromium/src/base/
simple_mutex.h 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);
    [all...]
  /external/chromium_org/third_party/tcmalloc/vendor/src/base/
simple_mutex.h 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);
    [all...]
  /external/chromium_org/third_party/tcmalloc/chromium/src/tests/
testutil.cc 162 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0)
185 SAFE_PTHREAD(pthread_create(&thr, NULL, RunFunctionInThread, &fn));
186 SAFE_PTHREAD(pthread_join(thr, NULL));
192 SAFE_PTHREAD(pthread_create(&thr[i], NULL, RunFunctionInThread, &fn));
195 SAFE_PTHREAD(pthread_join(thr[i], NULL));
210 SAFE_PTHREAD(pthread_create(&thr[i], &attr,
214 SAFE_PTHREAD(pthread_join(thr[i], NULL));
  /external/chromium_org/third_party/tcmalloc/vendor/src/tests/
testutil.cc 162 #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0)
185 SAFE_PTHREAD(pthread_create(&thr, NULL, RunFunctionInThread, &fn));
186 SAFE_PTHREAD(pthread_join(thr, NULL));
192 SAFE_PTHREAD(pthread_create(&thr[i], NULL, RunFunctionInThread, &fn));
195 SAFE_PTHREAD(pthread_join(thr[i], NULL));
210 SAFE_PTHREAD(pthread_create(&thr[i], &attr,
214 SAFE_PTHREAD(pthread_join(thr[i], NULL));

Completed in 574 milliseconds