Home | History | Annotate | Download | only in tsan

Lines Matching defs:mu_

30       assert(0 == pthread_mutex_init(&mu_, &attr));
32 assert(0 == pthread_mutex_init(&mu_, 0));
36 assert(0 == pthread_mutex_destroy(&mu_));
41 void lock() { assert(0 == pthread_mutex_lock(&mu_)); }
42 void unlock() { assert(0 == pthread_mutex_unlock(&mu_)); }
43 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); }
49 pthread_mutex_t mu_;
62 PthreadSpinLock() { assert(0 == pthread_spin_init(&mu_, 0)); }
64 assert(0 == pthread_spin_destroy(&mu_));
69 void lock() { assert(0 == pthread_spin_lock(&mu_)); }
70 void unlock() { assert(0 == pthread_spin_unlock(&mu_)); }
71 bool try_lock() { return 0 == pthread_spin_trylock(&mu_); }
77 pthread_spinlock_t mu_;
86 PthreadRWLock() { assert(0 == pthread_rwlock_init(&mu_, 0)); }
88 assert(0 == pthread_rwlock_destroy(&mu_));
93 void lock() { assert(0 == pthread_rwlock_wrlock(&mu_)); }
94 void unlock() { assert(0 == pthread_rwlock_unlock(&mu_)); }
95 bool try_lock() { return 0 == pthread_rwlock_trywrlock(&mu_); }
96 void rdlock() { assert(0 == pthread_rwlock_rdlock(&mu_)); }
97 void rdunlock() { assert(0 == pthread_rwlock_unlock(&mu_)); }
98 bool try_rdlock() { return 0 == pthread_rwlock_tryrdlock(&mu_); }
101 pthread_rwlock_t mu_;