From 772cba6f2e34660fa74a7e2f5ec2823a2cdb6b04 Mon Sep 17 00:00:00 2001 From: Pavel Levshin Date: Wed, 6 Nov 2013 18:37:47 +0100 Subject: improve worker thread pool handling among others, make possible that workers really timeout and the pool thus shrinks --- runtime/wti.h | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/wti.h') diff --git a/runtime/wti.h b/runtime/wti.h index 014251f0..b0dc6c96 100644 --- a/runtime/wti.h +++ b/runtime/wti.h @@ -37,6 +37,7 @@ struct wti_s { wtp_t *pWtp; /* my worker thread pool (important if only the work thread instance is passed! */ batch_t batch; /* pointer to an object array meaningful for current user pointer (e.g. queue pUsr data elemt) */ uchar *pszDbgHdr; /* header string for debug messages */ + pthread_cond_t pcondBusy; /* condition to wake up the worker, protected by pmutUsr in wtp */ DEF_ATOMIC_HELPER_MUT(mutIsRunning); }; -- cgit v1.2.3