#include #include int mtx_unlock(mtx_t *mtx) { return mtx_unlock(mtx) == 0 ? thrd_success : thrd_error; }