Free thread local storage on shutdown
[ghc-hetmet.git] / includes / RtsExternal.h
index bf581b7..37a9bd4 100644 (file)
@@ -66,6 +66,12 @@ extern void*  createAdjustor(int cconv, StgStablePtr hptr, StgFunPtr wptr,
                              char *typeString);
 extern void   freeHaskellFunctionPtr(void* ptr);
 
+/* Hpc stuff */
+extern int hs_hpc_module(char *modName,int modCount,StgWord64 *tixArr);
+extern void hs_hpc_tick(int globIx,struct StgTSO_ *current_tso);
+extern void hs_hpc_raise_event(struct StgTSO_ *current_tso);   
+extern void hs_hpc_thread_finished_event(struct StgTSO_ *current_tso);
+
 #if defined(mingw32_HOST_OS)
 extern int  rts_InstallConsoleEvent ( int action, StgStablePtr *handler );
 extern void rts_ConsoleHandlerDone  ( int ev );