summaryrefslogtreecommitdiffstats
path: root/threads.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-17 14:34:22 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-17 14:34:22 +0000
commit653ec62b23346eaab4f2f3830eeb7f1634a924c5 (patch)
treebea302747c51827905f2c8fc7eb8e4e243474149 /threads.h
parent8132d66186c8c08c44bb3504cb91e2e12bee11c1 (diff)
downloadrsyslog-653ec62b23346eaab4f2f3830eeb7f1634a924c5.tar.gz
rsyslog-653ec62b23346eaab4f2f3830eeb7f1634a924c5.tar.xz
rsyslog-653ec62b23346eaab4f2f3830eeb7f1634a924c5.zip
- implemented afterRun input module interface function
- implemented $klogSymbolsTwice config directive
Diffstat (limited to 'threads.h')
-rw-r--r--threads.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/threads.h b/threads.h
index 30551505..51ae52cf 100644
--- a/threads.h
+++ b/threads.h
@@ -36,6 +36,7 @@ typedef struct thrdInfo {
int bIsActive; /* Is thread running? */
int bShallStop; /* set to 1 if the thread should be stopped ? */
rsRetVal (*pUsrThrdMain)(struct thrdInfo*); /* user thread main to be called in new thread */
+ rsRetVal (*pAfterRun)(struct thrdInfo*); /* cleanup function */
pthread_t thrdID;
} thrdInfo_t;
@@ -55,7 +56,7 @@ rsRetVal thrdExit(void);
rsRetVal thrdInit(void);
rsRetVal thrdTerminate(thrdInfo_t *pThis);
rsRetVal thrdTerminateAll(void);
-rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), eTermSyncType_t eTermSyncType);
+rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), eTermSyncType_t eTermSyncType, rsRetVal(*afterRun)(thrdInfo_t *));
rsRetVal thrdSleep(thrdInfo_t *pThis, int iSeconds, int iuSeconds);
msgQueue *queueInit (void);
void queueDelete (msgQueue *q);