From 653ec62b23346eaab4f2f3830eeb7f1634a924c5 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 17 Dec 2007 14:34:22 +0000 Subject: - implemented afterRun input module interface function - implemented $klogSymbolsTwice config directive --- threads.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'threads.h') 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); -- cgit v1.2.3