From 29e6ad6c07992d6a947d739d1665a95e817e6e9b Mon Sep 17 00:00:00 2001 From: paulo Date: Thu, 17 Dec 2009 16:25:29 +0000 Subject: Use static mutexes --- lib/log.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/log.c') diff --git a/lib/log.c b/lib/log.c index 592dbf49..05911375 100644 --- a/lib/log.c +++ b/lib/log.c @@ -37,11 +37,11 @@ #include "qpthreads.h" #ifdef NDEBUG -#define LOCK qpt_mutex_lock(vty_mutex); -#define UNLOCK qpt_mutex_unlock(vty_mutex); +#define LOCK qpt_mutex_lock(&vty_mutex); +#define UNLOCK qpt_mutex_unlock(&vty_mutex); #else -#define LOCK qpt_mutex_lock(vty_mutex);++vty_lock_count; -#define UNLOCK --vty_lock_count;qpt_mutex_unlock(vty_mutex); +#define LOCK qpt_mutex_lock(&vty_mutex);++vty_lock_count; +#define UNLOCK --vty_lock_count;qpt_mutex_unlock(&vty_mutex); #define ASSERTLOCKED if(vty_lock_count==0 && !vty_lock_asserted){vty_lock_asserted=1;assert(0);} #endif -- cgit v1.2.3