1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team 1998-2002
5 * External API for the scheduler. For most uses, the functions in
6 * RtsAPI.h should be enough.
8 * ---------------------------------------------------------------------------*/
14 /* Dummy def for NO_PRI if not in GranSim */
22 StgTSO *createThread (Capability *cap, nat stack_size, StgInt pri);
24 StgTSO *createThread (Capability *cap, nat stack_size);
27 Capability *scheduleWaitThread (StgTSO *tso, /*out*/HaskellObj* ret,
30 StgTSO *createGenThread (Capability *cap, nat stack_size,
32 StgTSO *createIOThread (Capability *cap, nat stack_size,
34 StgTSO *createStrictIOThread (Capability *cap, nat stack_size,