X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2Frts%2FThreads.h;h=ca3e8b2da07245846a5c1f2767b8a3f2c945ff15;hb=d20d32d788e2d6c088e6b03776c428df5bb004d3;hp=06a0ed11dc7ee843c6309bf07868a50c70fbad5e;hpb=a2a67cd520b9841114d69a87a423dabcb3b4368e;p=ghc-hetmet.git diff --git a/includes/rts/Threads.h b/includes/rts/Threads.h index 06a0ed1..ca3e8b2 100644 --- a/includes/rts/Threads.h +++ b/includes/rts/Threads.h @@ -5,6 +5,11 @@ * External API for the scheduler. For most uses, the functions in * RtsAPI.h should be enough. * + * Do not #include this file directly: #include "Rts.h" instead. + * + * To understand the structure of the RTS headers, see the wiki: + * http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes + * * ---------------------------------------------------------------------------*/ #ifndef RTS_THREADS_H @@ -34,7 +39,14 @@ StgRegTable * resumeThread (void *); // int cmp_thread (StgPtr tso1, StgPtr tso2); int rts_getThreadId (StgPtr tso); + +#if !defined(mingw32_HOST_OS) pid_t forkProcess (HsStablePtr *entry); +#else +pid_t forkProcess (HsStablePtr *entry) + GNU_ATTRIBUTE(__noreturn__); +#endif + HsBool rtsSupportsBoundThreads (void); // The number of Capabilities