diff options
Diffstat (limited to 'libthreads')
-rw-r--r-- | libthreads/cthreads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libthreads/cthreads.h b/libthreads/cthreads.h index 2c35e700..d937dcca 100644 --- a/libthreads/cthreads.h +++ b/libthreads/cthreads.h @@ -419,7 +419,7 @@ typedef struct mutex { #define mutex_clear(m) mutex_init(m) #define mutex_free(m) free((m)) -#define mutex_try_lock(m) spin_try_lock(&(m)->held) +#define mutex_try_lock(m) (spin_try_lock(&(m)->held) ? WAIT_SET_DEBUG(m), 1 : 0) #define mutex_lock(m) \ MACRO_BEGIN \ if (!spin_try_lock(&(m)->held)) { \ |