grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / task / task.h
blob6b3a058b439912871f1badd8fd7b04aaf268e3f9
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef TASKRES_H
7 #define TASKRES_H
9 #ifndef EXEC_TASKS_H
10 # include <exec/tasks.h>
11 #endif
13 #ifndef UTILITY_TAGITEM_H
14 # include <utility/tagitem.h>
15 #endif
17 #define LTF_RUNNING (1 << 0)
18 #define LTF_READY (1 << 1)
19 #define LTF_WAITING (1 << 2) // N.B: includes spinning tasks
20 #define LTF_ALL (LTF_RUNNING|LTF_READY|LTF_WAITING)
21 #define LTF_WRITE (1 << 31)
23 #define TaskTag_CPUNumber (TAG_USER + 0x00000001) // CPU Number task is currently running on
24 #define TaskTag_CPUAffinity (TAG_USER + 0x00000002) // CPU Affinity mask
25 #define TaskTag_CPUTime (TAG_USER + 0x00000003) // Amount of CPU time spent running
26 #define TaskTag_StartTime (TAG_USER + 0x00000004) // Time the task was started
28 // The contents of the tasklist are private to task.resource
29 struct TaskList
31 void *tl_Private;
34 #endif /* TASKRES_H */