X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=includes%2Frts%2FOSThreads.h;h=5d3e6ba1406df1c06e12e64da73b762a01af4878;hp=2d32136379b0fc8ff7040f8d5b07208ead3a1da4;hb=83d563cb9ede0ba792836e529b1e2929db926355;hpb=a2a67cd520b9841114d69a87a423dabcb3b4368e diff --git a/includes/rts/OSThreads.h b/includes/rts/OSThreads.h index 2d32136..5d3e6ba 100644 --- a/includes/rts/OSThreads.h +++ b/includes/rts/OSThreads.h @@ -1,10 +1,15 @@ /* --------------------------------------------------------------------------- * - * (c) The GHC Team, 2001-2005 + * (c) The GHC Team, 2001-2009 * * Accessing OS threads functionality in a (mostly) OS-independent * manner. * + * 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_OSTHREADS_H @@ -160,6 +165,7 @@ typedef void OSThreadProcAttr OSThreadProc(void *); extern int createOSThread ( OSThreadId* tid, OSThreadProc *startProc, void *param); extern rtsBool osThreadIsAlive ( OSThreadId id ); +extern void interruptOSThread (OSThreadId id); // // Condition Variables