Lines Matching refs:mutex
48 pthread_mutex_t* mutex = in MutexImpl() local
63 errorcode = pthread_mutex_init(mutex, &attr); in MutexImpl()
71 data_ = mutex; in MutexImpl()
77 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in ~MutexImpl() local
78 assert(mutex != nullptr); in ~MutexImpl()
79 pthread_mutex_destroy(mutex); in ~MutexImpl()
80 free(mutex); in ~MutexImpl()
86 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in acquire() local
87 assert(mutex != nullptr); in acquire()
89 int errorcode = pthread_mutex_lock(mutex); in acquire()
96 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in release() local
97 assert(mutex != nullptr); in release()
99 int errorcode = pthread_mutex_unlock(mutex); in release()
106 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in tryacquire() local
107 assert(mutex != nullptr); in tryacquire()
109 int errorcode = pthread_mutex_trylock(mutex); in tryacquire()