-
Notifications
You must be signed in to change notification settings - Fork 0
/
SchedAPI.h
27 lines (23 loc) · 817 Bytes
/
SchedAPI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* -----------------------------------------------------------------------------
*
* (c) The GHC Team 1998-2002
*
* External API for the scheduler. For most uses, the functions in
* RtsAPI.h should be enough.
*
* ---------------------------------------------------------------------------*/
#ifndef SCHEDAPI_H
#define SCHEDAPI_H
/*
* Creating threads
*/
StgTSO *createThread (Capability *cap, nat stack_size);
Capability *scheduleWaitThread (StgTSO *tso, /*out*/HaskellObj* ret,
Capability *cap);
StgTSO *createGenThread (Capability *cap, nat stack_size,
StgClosure *closure);
StgTSO *createIOThread (Capability *cap, nat stack_size,
StgClosure *closure);
StgTSO *createStrictIOThread (Capability *cap, nat stack_size,
StgClosure *closure);
#endif