summaryrefslogtreecommitdiffstats
path: root/runtime/wti.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-22 13:54:40 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-22 13:54:40 +0200
commitcf38fc81759b01af5125b1a05e0d6fe8e2e1bc21 (patch)
tree534bfa946536dd45f3127912f268ee960c6a3285 /runtime/wti.h
parentb6f496f8619b02c50d3f5ced34eff279244b6e9b (diff)
downloadrsyslog-cf38fc81759b01af5125b1a05e0d6fe8e2e1bc21.tar.gz
rsyslog-cf38fc81759b01af5125b1a05e0d6fe8e2e1bc21.tar.xz
rsyslog-cf38fc81759b01af5125b1a05e0d6fe8e2e1bc21.zip
added a setting "$OptimizeForUniprocessor"
...to enable users to turn off pthread_yield calls which are counter-productive on multiprocessor machines (but have been shown to be useful on uniprocessors)
Diffstat (limited to 'runtime/wti.h')
-rw-r--r--runtime/wti.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/wti.h b/runtime/wti.h
index 0cd6744e..6b60b833 100644
--- a/runtime/wti.h
+++ b/runtime/wti.h
@@ -31,6 +31,7 @@
/* the worker thread instance class */
typedef struct wti_s {
BEGINobjInstance;
+ int bOptimizeUniProc; /* cache for the equally-named global setting, pulled at time of queue creation */
pthread_t thrdID; /* thread ID */
qWrkCmd_t tCurrCmd; /* current command to be carried out by worker */
obj_t *pUsrp; /* pointer to an object meaningful for current user pointer (e.g. queue pUsr data elemt) */