summaryrefslogtreecommitdiff
path: root/rts/HsFFI.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2014-02-27 14:07:29 +0000
committerSimon Marlow <marlowsd@gmail.com>2014-02-27 14:07:34 +0000
commitaf6746fb6b5adb5ba5be6e0f647c4ebe767ce084 (patch)
treefce2e5cf3989597d3a1446f68c18d82bb9d1403f /rts/HsFFI.c
parent68c0d8689dd93cb0ce74a288e82f2ed997c31acc (diff)
downloadhaskell-af6746fb6b5adb5ba5be6e0f647c4ebe767ce084.tar.gz
Add hs_thread_done() (#8124)
See documentation for details.
Diffstat (limited to 'rts/HsFFI.c')
-rw-r--r--rts/HsFFI.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rts/HsFFI.c b/rts/HsFFI.c
index 856536f5aa..8fae246111 100644
--- a/rts/HsFFI.c
+++ b/rts/HsFFI.c
@@ -11,6 +11,7 @@
#include "Rts.h"
#include "Stable.h"
+#include "Task.h"
// hs_init and hs_exit are defined in RtsStartup.c
@@ -59,3 +60,9 @@ hs_free_fun_ptr(HsFunPtr fp)
/* I simply *love* all these similar names... */
freeHaskellFunctionPtr(fp);
}
+
+void
+hs_thread_done(void)
+{
+ freeMyTask();
+}