Lines Matching refs:rc
32 [[maybe_unused]]int rc = pthread_mutex_destroy(&mutex_);
33 FATAL_IF_ERROR("pthread_mutex_destroy", rc);
38 [[maybe_unused]]int rc = pthread_mutex_init(&mutex_, attrs);
39 FATAL_IF_ERROR("pthread_mutex_init", rc);
44 [[maybe_unused]]int rc = pthread_mutex_lock(&mutex_);
45 FATAL_IF_ERROR("pthread_mutex_lock", rc);
50 int rc = pthread_mutex_trylock(&mutex_);
51 if (rc == EBUSY) {
55 FATAL_IF_ERROR("pthread_mutex_trylock", rc);
62 [[maybe_unused]]int rc = pthread_mutex_unlock(&mutex_);
63 FATAL_IF_ERROR("pthread_mutex_unlock", rc);
76 [[maybe_unused]]int rc = pthread_rwlock_init(&rwlock_, nullptr);
77 FATAL_IF_ERROR("pthread_rwlock_init", rc);
82 [[maybe_unused]]int rc = pthread_rwlock_destroy(&rwlock_);
83 FATAL_IF_ERROR("pthread_rwlock_destroy", rc);
88 [[maybe_unused]]int rc = pthread_rwlock_rdlock(&rwlock_);
89 FATAL_IF_ERROR("pthread_rwlock_rdlock", rc);
94 [[maybe_unused]]int rc = pthread_rwlock_wrlock(&rwlock_);
95 FATAL_IF_ERROR("pthread_rwlock_wrlock", rc);
100 int rc = pthread_rwlock_tryrdlock(&rwlock_);
101 if (rc == EBUSY) {
105 FATAL_IF_ERROR("pthread_rwlock_tryrdlock", rc);
112 int rc = pthread_rwlock_trywrlock(&rwlock_);
113 if (rc == EBUSY) {
117 FATAL_IF_ERROR("pthread_rwlock_trywrlock", rc);
124 [[maybe_unused]]int rc = pthread_rwlock_unlock(&rwlock_);
125 FATAL_IF_ERROR("pthread_rwlock_unlock", rc);
130 [[maybe_unused]]int rc = pthread_cond_init(&cond_, nullptr);
131 FATAL_IF_ERROR("pthread_cond_init", rc);
136 [[maybe_unused]]int rc = pthread_cond_destroy(&cond_);
137 FATAL_IF_ERROR("pthread_cond_destroy", rc);
142 [[maybe_unused]]int rc = pthread_cond_signal(&cond_);
143 FATAL_IF_ERROR("pthread_cond_signal", rc);
148 [[maybe_unused]]int rc = pthread_cond_broadcast(&cond_);
149 FATAL_IF_ERROR("pthread_cond_broadcast", rc);
154 [[maybe_unused]]int rc = pthread_cond_wait(&cond_, &mutex->mutex_);
155 FATAL_IF_ERROR("pthread_cond_wait", rc);
181 int rc = pthread_cond_timedwait(&cond_, &mutex->mutex_, &abs_time);
182 if (rc != 0) {
183 if (rc == ETIMEDOUT) {
188 FATAL_IF_ERROR("pthread_cond_timedwait", rc);