From 92c906f1057f60421bc39a65d38f28c64bb28dd1 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Sun, 4 Dec 2011 14:47:32 -0500 Subject: [PATCH] Fix macros so that they use their arguments properly. --- c_src/bdberl_tpool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/c_src/bdberl_tpool.c b/c_src/bdberl_tpool.c index 41156cd..4411173 100644 --- a/c_src/bdberl_tpool.c +++ b/c_src/bdberl_tpool.c @@ -45,8 +45,9 @@ static int remove_pending_job(TPool* tpool, TPoolJob* job); static void cleanup_job(TPool* tpool, TPoolJob* job); static int is_active_job(TPool* tpool, TPoolJob* job); -#define LOCK(t) erl_drv_mutex_lock(tpool->lock) -#define UNLOCK(t) erl_drv_mutex_unlock(tpool->lock) +#define LOCK(tpool) erl_drv_mutex_lock(tpool->lock) +#define UNLOCK(tpool) erl_drv_mutex_unlock(tpool->lock) + TPool* bdberl_tpool_start(unsigned int thread_count) {