diff options
Diffstat (limited to 'libibex/ibex_internal.h')
-rw-r--r-- | libibex/ibex_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libibex/ibex_internal.h b/libibex/ibex_internal.h index 1ae2b66146..321b596f2a 100644 --- a/libibex/ibex_internal.h +++ b/libibex/ibex_internal.h @@ -52,8 +52,10 @@ struct ibex { #define IBEX_UNLOCK(ib) (printf(__FILE__ "%d: %s: unlocking ibex\n", __LINE__, __FUNCTION__), g_mutex_unlock(ib->lock))*/ #define IBEX_LOCK(ib) (g_mutex_lock(ib->lock)) #define IBEX_UNLOCK(ib) (g_mutex_unlock(ib->lock)) +#define IBEX_TRYLOCK(ib) (g_mutex_trylock(ib->lock)) #else #define IBEX_LOCK(ib) #define IBEX_UNLOCK(ib) +#define IBEX_TRYLOCK(ib) (0) #endif |