From 26db2c07568e288e6d3e985945587cabfe24b51f Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 10 Dec 2008 21:38:49 -0700 Subject: [PATCH] Changing from a single signal to a broadcast --- c_src/bdberl_tpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/bdberl_tpool.c b/c_src/bdberl_tpool.c index 6dc5a6b..22dd6db 100644 --- a/c_src/bdberl_tpool.c +++ b/c_src/bdberl_tpool.c @@ -103,7 +103,7 @@ TPoolJob* bdberl_tpool_run(TPool* tpool, TPoolJobFunc main_fn, void* arg, TPoolJ // Generate a notification that there is work todo. // TODO: I think this may not be necessary, in the case where there are already other // pending jobs. Not sure ATM, however, so will be on safe side - erl_drv_cond_signal(tpool->work_cv); + erl_drv_cond_broadcast(tpool->work_cv); UNLOCK(tpool); return job; }