#define _SIMPLE_MTX_INITIALIZER_NP { 0 }
static inline void
-simple_mtx_init(simple_mtx_t *mtx, int type)
+simple_mtx_init(simple_mtx_t *mtx, MAYBE_UNUSED int type)
{
assert(type == mtx_plain);
}
static inline void
-simple_mtx_destroy(simple_mtx_t *mtx)
+simple_mtx_destroy(UNUSED simple_mtx_t *mtx)
{
}
if (c != 2)
c = __sync_lock_test_and_set(&mtx->val, 2);
while (c != 0) {
- futex_wait(&mtx->val, 2);
+ futex_wait(&mtx->val, 2, NULL);
c = __sync_lock_test_and_set(&mtx->val, 2);
}
}