/* ----------------------------------------------------------------------------- * * (c) The GHC Team, 2016 * * Top-level handler support * * ---------------------------------------------------------------------------*/ #pragma once #include #include #include #include // Initialize the top handler subsystem void initTopHandler(void); // Exit the top handler subsystem void exitTopHandler(void); // Get the thread that handles ctrl-c, etc // Returns NULL if there is no such thread StgTSO *getTopHandlerThread(void); #include // Called from Haskell void rts_setMainThread(StgWeak *ptr);