Searched refs:CHECK_ERR (Results 1 – 1 of 1) sorted by relevance
18 #define CHECK_ERR(err) check_err(__func__, err) macro24 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()[all …]