diff options
Diffstat (limited to 'rts/HsFFI.c')
-rw-r--r-- | rts/HsFFI.c | 7 |
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(); +} |