summaryrefslogtreecommitdiffstats
path: root/threads.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-17 07:46:30 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-17 07:46:30 +0000
commitb0ee8aac88dfad1a2d7c47f49670e52b368fa580 (patch)
tree2df769472df4801e45306e1c092eada29066d302 /threads.h
parentc55bb999b214c2dbd7d27b37fb189d2514e7a169 (diff)
downloadrsyslog-b0ee8aac88dfad1a2d7c47f49670e52b368fa580.tar.gz
rsyslog-b0ee8aac88dfad1a2d7c47f49670e52b368fa580.tar.xz
rsyslog-b0ee8aac88dfad1a2d7c47f49670e52b368fa580.zip
created thread-class internal wrapper for calling user supplied thread main
function
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 1075ec7f..9ed6b2b3 100644
--- a/threads.h
+++ b/threads.h
@@ -34,6 +34,7 @@ typedef enum eTermSyncType {
typedef struct thrdInfo {
eTermSyncType_t eTermTool;
int bIsActive; /* Is thread running? */
+ rsRetVal (*pUsrThrdMain)(void); /* user thread main to be called in new thread */
pthread_t thrdID;
} thrdInfo_t;
@@ -53,7 +54,7 @@ rsRetVal thrdExit(void);
rsRetVal thrdInit(void);
rsRetVal thrdTerminate(thrdInfo_t *pThis);
rsRetVal thrdTerminateAll(void);
-rsRetVal thrdCreate(void* (*thrdMain)(void*), eTermSyncType_t eTermSyncType);
+rsRetVal thrdCreate(rsRetVal (*thrdMain)(void), eTermSyncType_t eTermSyncType);
msgQueue *queueInit (void);
void queueDelete (msgQueue *q);
void queueAdd (msgQueue *q, void* in);