Document new -L RTS flag
[ghc-hetmet.git] / includes / SchedAPI.h
1 /* -----------------------------------------------------------------------------
2  *
3  * (c) The GHC Team 1998-2002
4  *
5  * External API for the scheduler.  For most uses, the functions in
6  * RtsAPI.h should be enough.
7  *
8  * ---------------------------------------------------------------------------*/
9
10 #ifndef SCHEDAPI_H
11 #define SCHEDAPI_H
12
13 #if defined(GRAN)
14 /* Dummy def for NO_PRI if not in GranSim */
15 #define NO_PRI  0
16 #endif
17
18 /* 
19  * Creating threads
20  */
21 #if defined(GRAN)
22 StgTSO *createThread (Capability *cap, nat stack_size, StgInt pri);
23 #else
24 StgTSO *createThread (Capability *cap, nat stack_size);
25 #endif
26
27 Capability *scheduleWaitThread (StgTSO *tso, /*out*/HaskellObj* ret,
28                                 Capability *cap);
29
30 StgTSO *createGenThread       (Capability *cap, nat stack_size,  
31                                StgClosure *closure);
32 StgTSO *createIOThread        (Capability *cap, nat stack_size,  
33                                StgClosure *closure);
34 StgTSO *createStrictIOThread  (Capability *cap, nat stack_size,  
35                                StgClosure *closure);
36 #endif