Fix macros so that they use their arguments properly.
This commit is contained in:
parent
91d10a7d51
commit
92c906f105
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue