Lines Matching refs:CHECK_ERR
18 #define CHECK_ERR(err) check_err(__func__, err) macro
24 CHECK_ERR(pthread_mutexattr_init(&attr)); in __mutex_init()
28 CHECK_ERR(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK)); in __mutex_init()
31 CHECK_ERR(pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)); in __mutex_init()
33 CHECK_ERR(pthread_mutex_init(&mtx->lock, &attr)); in __mutex_init()
34 CHECK_ERR(pthread_mutexattr_destroy(&attr)); in __mutex_init()
49 CHECK_ERR(pthread_mutex_destroy(&mtx->lock)); in mutex_destroy()
55 CHECK_ERR(pthread_mutex_lock(&mtx->lock)); in mutex_lock()
61 CHECK_ERR(pthread_mutex_unlock(&mtx->lock)); in mutex_unlock()
75 CHECK_ERR(ret); in mutex_trylock()
83 CHECK_ERR(pthread_condattr_init(&attr)); in __cond_init()
85 CHECK_ERR(pthread_condattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)); in __cond_init()
87 CHECK_ERR(pthread_cond_init(&cnd->cond, &attr)); in __cond_init()
88 CHECK_ERR(pthread_condattr_destroy(&attr)); in __cond_init()
103 CHECK_ERR(pthread_cond_destroy(&cnd->cond)); in cond_destroy()
108 CHECK_ERR(pthread_cond_wait(&cnd->cond, &mtx->lock)); in cond_wait()
113 CHECK_ERR(pthread_cond_signal(&cnd->cond)); in cond_signal()
118 CHECK_ERR(pthread_cond_broadcast(&cnd->cond)); in cond_broadcast()