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