diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-17 14:34:22 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-17 14:34:22 +0000 |
commit | 653ec62b23346eaab4f2f3830eeb7f1634a924c5 (patch) | |
tree | bea302747c51827905f2c8fc7eb8e4e243474149 /threads.h | |
parent | 8132d66186c8c08c44bb3504cb91e2e12bee11c1 (diff) | |
download | rsyslog-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |