diff options
author | paulo <paul@bayleaf.org.uk> | 2009-12-17 16:25:29 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2009-12-17 16:25:29 +0000 |
commit | 29e6ad6c07992d6a947d739d1665a95e817e6e9b (patch) | |
tree | d86b1aa9072cab272df2addaab69e0cb2df64851 /lib/log.c | |
parent | 57c08de786262cfb59cbc691ac18712d0ac1e9e3 (diff) | |
download | quagga-29e6ad6c07992d6a947d739d1665a95e817e6e9b.tar.bz2 quagga-29e6ad6c07992d6a947d739d1665a95e817e6e9b.tar.xz |
Use static mutexes
Diffstat (limited to 'lib/log.c')
-rw-r--r-- | lib/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |