summaryrefslogtreecommitdiffstats
path: root/runtime/stream.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-07 18:33:00 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-07 18:33:00 +0200
commit5221a1e42e16c8c39b48a4a1a18ee6322c38cd17 (patch)
tree69be4d6da9d229da2779ad81434e9bfe2ef8c6fb /runtime/stream.h
parent26227091faac8c3cc9bc282eb4e4fc408635f8d2 (diff)
downloadrsyslog-5221a1e42e16c8c39b48a4a1a18ee6322c38cd17.tar.gz
rsyslog-5221a1e42e16c8c39b48a4a1a18ee6322c38cd17.tar.xz
rsyslog-5221a1e42e16c8c39b48a4a1a18ee6322c38cd17.zip
added capability to write incomplete buffers after an inactivity timeout
for the stream class and thus finally activating omfile's timeout capability in a useful way without polling and too-high performance overhead.
Diffstat (limited to 'runtime/stream.h')
-rw-r--r--runtime/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/stream.h b/runtime/stream.h
index 1efd29b5..cb368835 100644
--- a/runtime/stream.h
+++ b/runtime/stream.h
@@ -124,6 +124,7 @@ typedef struct strm_s {
/* support for async flush procesing */
bool bAsyncWrite; /* do asynchronous writes (always if a flush interval is given) */
bool bStopWriter; /* shall writer thread terminate? */
+ bool bDoTimedWait; /* instruct writer thread to do a times wait to support flush timeouts */
int iFlushInterval; /* flush in which interval - 0, no flushing */
apc_id_t apcID; /* id of current Apc request (used for cancelling) */
pthread_mutex_t mut;/* mutex for flush in async mode */