diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-03-10 22:55:19 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-10-30 00:41:14 -0400 |
commit | 4e4a73868488f83aa9d355d147e116408634c140 (patch) | |
tree | 7b54075262dcddb23db4cb1dbed9987857d5e6ba /includes/rts | |
parent | d44f523208d32b599fa7e1260de32515d2ef9944 (diff) | |
download | haskell-4e4a73868488f83aa9d355d147e116408634c140.tar.gz |
rts: Join to concurrent mark thread during shutdown
Previously we would take all capabilities but fail to join on the thread
itself, potentially resulting in a leaked thread.
Diffstat (limited to 'includes/rts')
-rw-r--r-- | includes/rts/OSThreads.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/rts/OSThreads.h b/includes/rts/OSThreads.h index a68f1ea140..21b92950b2 100644 --- a/includes/rts/OSThreads.h +++ b/includes/rts/OSThreads.h @@ -164,7 +164,8 @@ typedef void* OSThreadProcAttr OSThreadProc(void *); extern int createOSThread ( OSThreadId* tid, char *name, OSThreadProc *startProc, void *param); extern bool osThreadIsAlive ( OSThreadId id ); -extern void interruptOSThread (OSThreadId id); +extern void interruptOSThread ( OSThreadId id ); +extern void joinOSThread ( OSThreadId id ); // // Condition Variables |