1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team 2001-
5 * Types + prototypes for functions in Task.c
6 * (RTS subsystem for handling tasks, agents thay may execute STG code).
8 * -------------------------------------------------------------------------*/
11 #if defined(RTS_SUPPORTS_THREADS) /* to the end */
14 * Tasks evaluate STG code; the TaskInfo structure collects together
15 * misc metadata about a task.
18 typedef struct _TaskInfo {
20 double elapsedtimestart;
27 extern TaskInfo *taskIds;
29 extern void startTaskManager ( nat maxTasks, void (*taskStart)(void) );
30 extern void stopTaskManager ( void );
32 extern void startTask ( void (*taskStart)(void) );
34 #endif /* RTS_SUPPORTS_THREADS */
35 #endif /* __TASK_H__ */