revert between 56095 -> 55830 in arch
[AROS.git] / rom / task / task.h
blobf4c0e059f86570f94ab9c6bc5222725185e55a28
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
27 #define TaskTag_CPUUsage (TAG_USER + 0x00000005) // CPU Usage of this task
29 // The contents of the tasklist are private to task.resource
30 struct TaskList
32 void *tl_Private;
35 #endif /* TASKRES_H */