diff options
author | Simon Marlow <marlowsd@gmail.com> | 2014-10-10 14:26:19 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2014-10-10 14:31:59 +0100 |
commit | 674c631ea111233daa929ef63500d75ba0db8858 (patch) | |
tree | db42f94960c86876b73785f2c1946aeff871308e /includes/rts | |
parent | d3f56ec6a6ead847233fee5dfad7979c2d63fc3d (diff) | |
download | haskell-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.h | 2 |
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); |