projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Amend comment per Marlow's comments.
[ghc-hetmet.git]
/
includes
/
rts
/
Threads.h
diff --git
a/includes/rts/Threads.h
b/includes/rts/Threads.h
index
06a0ed1
..
c974142
100644
(file)
--- 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.
*
* 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
* ---------------------------------------------------------------------------*/
#ifndef RTS_THREADS_H
@@
-26,7
+31,7
@@
StgTSO *createStrictIOThread (Capability *cap, nat stack_size,
StgClosure *closure);
// Suspending/resuming threads around foreign calls
StgClosure *closure);
// Suspending/resuming threads around foreign calls
-void * suspendThread (StgRegTable *);
+void * suspendThread (StgRegTable *, rtsBool interruptible);
StgRegTable * resumeThread (void *);
//
StgRegTable * resumeThread (void *);
//
@@
-34,7
+39,14
@@
StgRegTable * resumeThread (void *);
//
int cmp_thread (StgPtr tso1, StgPtr tso2);
int rts_getThreadId (StgPtr tso);
//
int cmp_thread (StgPtr tso1, StgPtr tso2);
int rts_getThreadId (StgPtr tso);
+
+#if !defined(mingw32_HOST_OS)
pid_t forkProcess (HsStablePtr *entry);
pid_t forkProcess (HsStablePtr *entry);
+#else
+pid_t forkProcess (HsStablePtr *entry)
+ GNU_ATTRIBUTE(__noreturn__);
+#endif
+
HsBool rtsSupportsBoundThreads (void);
// The number of Capabilities
HsBool rtsSupportsBoundThreads (void);
// The number of Capabilities