From 609175713ba2aa302addda2c09d7c837ad9ba457 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 26 Oct 2018 19:40:51 +0200 Subject: [PATCH] Fix C11 backend. --- m-mutex.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/m-mutex.h b/m-mutex.h index d4141af2..1c69c4b5 100644 --- a/m-mutex.h +++ b/m-mutex.h @@ -71,11 +71,6 @@ static inline void m_cond_clear(m_cond_t c) cnd_destroy(c); } -static inline void m_cond_clear(m_cond_t c) -{ - cnd_signal(c); -} - static inline void m_cond_signal(m_cond_t c) { cnd_signal(c); @@ -99,7 +94,7 @@ static inline void m_thread_create(m_thread_t t, void (*func)(void*), void* arg) static inline void m_thread_join(m_thread_t t) { - int rc = thrd_join(t, NULL); + int rc = thrd_join(*t, NULL); assert (rc == thrd_success); }