diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-20 11:52:05 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-20 11:52:05 +0200 |
commit | 4ec7b9d9ec12d91dde3d030bdaf87cfdd6b5d81d (patch) | |
tree | a08d9a3b839f40bb5d26d06f5b2b54787277faf9 /runtime/wti.h | |
parent | ef70e6174d4b373a601b73757ca19bb0f7dd6502 (diff) | |
download | rsyslog-4ec7b9d9ec12d91dde3d030bdaf87cfdd6b5d81d.tar.gz rsyslog-4ec7b9d9ec12d91dde3d030bdaf87cfdd6b5d81d.tar.xz rsyslog-4ec7b9d9ec12d91dde3d030bdaf87cfdd6b5d81d.zip |
enhanced worker thread pool by atomic ops
... greater performance and was able to remove a potential troublespot
in a cancel cleanup handler.
Diffstat (limited to 'runtime/wti.h')
-rw-r--r-- | runtime/wti.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |