summaryrefslogtreecommitdiffstats
path: root/runtime/queue.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/queue.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/queue.h')
-rw-r--r--runtime/queue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/queue.h b/runtime/queue.h
index 9e75b31b..a2dd594f 100644
--- a/runtime/queue.h
+++ b/runtime/queue.h
@@ -58,6 +58,7 @@ typedef struct qWrkThrd_s {
typedef struct queue_s {
BEGINobjInstance;
queueType_t qType;
+ int bOptimizeUniProc; /* cache for the equally-named global setting, pulled at time of queue creation */
int bEnqOnly; /* does queue run in enqueue-only mode (1) or not (0)? */
int bSaveOnShutdown;/* persists everthing on shutdown (if DA!)? 1-yes, 0-no */
int bQueueStarted; /* has queueStart() been called on this queue? 1-yes, 0-no */