From 4ec7b9d9ec12d91dde3d030bdaf87cfdd6b5d81d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 20 Jul 2009 11:52:05 +0200 Subject: enhanced worker thread pool by atomic ops ... greater performance and was able to remove a potential troublespot in a cancel cleanup handler. --- runtime/wti.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/wti.h') diff --git a/runtime/wti.h b/runtime/wti.h index cd408bde..f466a053 100644 --- a/runtime/wti.h +++ b/runtime/wti.h @@ -34,8 +34,8 @@ struct wti_s { BEGINobjInstance; pthread_t thrdID; /* thread ID */ + int bIsRunning; /* is this thread currently running? (must be int for atomic op!) */ bool bAlwaysRunning; /* should this thread always run? */ - bool bIsRunning; /* is this thread currently running? */ 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 */ -- cgit