summaryrefslogtreecommitdiffstats
path: root/threads.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-05-02 16:01:13 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-05-02 16:01:13 +0200
commit1d7ba92156f5a5ac1783df563ec3344fdf8365df (patch)
tree87c8ea03caf06b5dedb4ce65e13db1e280c449cb /threads.h
parent45dc0db51e78d3d6ef296f0cfd7a7a775e91415c (diff)
downloadrsyslog-1d7ba92156f5a5ac1783df563ec3344fdf8365df.tar.gz
rsyslog-1d7ba92156f5a5ac1783df563ec3344fdf8365df.tar.xz
rsyslog-1d7ba92156f5a5ac1783df563ec3344fdf8365df.zip
better debug instrumentation --> input thread names used for reporting
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 d838bde2..1ee767a2 100644
--- a/threads.h
+++ b/threads.h
@@ -32,6 +32,7 @@ struct thrdInfo {
rsRetVal (*pAfterRun)(struct thrdInfo*); /* cleanup function */
pthread_t thrdID;
sbool bNeedsCancel; /* must input be terminated by pthread_cancel()? */
+ uchar *name; /* a thread name, mainly for user interaction */
};
/* prototypes */
@@ -39,7 +40,7 @@ rsRetVal thrdExit(void);
rsRetVal thrdInit(void);
rsRetVal thrdTerminate(thrdInfo_t *pThis);
rsRetVal thrdTerminateAll(void);
-rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), rsRetVal(*afterRun)(thrdInfo_t *), sbool);
+rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), rsRetVal(*afterRun)(thrdInfo_t *), sbool, uchar*);
/* macros (replace inline functions) */