summaryrefslogtreecommitdiff
path: root/includes/rts
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2014-10-10 14:26:19 +0100
committerSimon Marlow <marlowsd@gmail.com>2014-10-10 14:31:59 +0100
commit674c631ea111233daa929ef63500d75ba0db8858 (patch)
treedb42f94960c86876b73785f2c1946aeff871308e /includes/rts
parentd3f56ec6a6ead847233fee5dfad7979c2d63fc3d (diff)
downloadhaskell-674c631ea111233daa929ef63500d75ba0db8858.tar.gz
Name worker threads using pthread_setname_np
This helps identify threads in gdb particularly in processes with a lot of threads.
Diffstat (limited to 'includes/rts')
-rw-r--r--includes/rts/OSThreads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/rts/OSThreads.h b/includes/rts/OSThreads.h
index e99be8acd2..a3ed47c19b 100644
--- a/includes/rts/OSThreads.h
+++ b/includes/rts/OSThreads.h
@@ -171,7 +171,7 @@ extern void yieldThread ( void );
typedef void OSThreadProcAttr OSThreadProc(void *);
-extern int createOSThread ( OSThreadId* tid,
+extern int createOSThread ( OSThreadId* tid, char *name,
OSThreadProc *startProc, void *param);
extern rtsBool osThreadIsAlive ( OSThreadId id );
extern void interruptOSThread (OSThreadId id);