summaryrefslogtreecommitdiffstats
path: root/threads.h
diff options
context:
space:
mode:
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) */