Indentation fix, cleanup.
[AROS.git] / rom / task / taskres_intern.h
bloba5217044b05fd4a361ef434331f80db6063c27c2
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef TASKRES_INTERN_H
7 #define TASKRES_INTERN_H
9 #ifndef EXEC_TYPES_H
10 #include <exec/types.h>
11 #endif
12 #ifndef EXEC_NODES_H
13 #include <exec/nodes.h>
14 #endif
15 #ifndef EXEC_LISTS_H
16 #include <exec/lists.h>
17 #endif
18 #ifndef EXEC_SEMAPHORES_H
19 #include <exec/semaphores.h>
20 #endif
21 #ifndef UTILITY_UTILITY_H
22 #include <utility/utility.h>
23 #endif
25 struct TaskResBase
27 struct Library trb_LibNode;
28 APTR trb_KernelBase;
29 APTR trb_NewAddTask;
30 APTR trb_RemTask;
31 struct SignalSemaphore trb_Sem;
32 struct List trb_TaskList;
33 struct List trb_NewTasks;
34 struct List trb_LockedLists;
35 struct Library * trb_UtilityBase;
38 struct TaskListEntry
40 struct Node tle_Node;
41 struct Task *tle_Task;
44 // The "Real" implementation of struct TaskList
45 struct TaskListPrivate
47 struct Node tlp_Node;
48 ULONG tlp_Flags;
49 struct List *tlp_Tasks;
50 struct TaskListEntry *tlp_Next;
53 #ifdef KernelBase
54 #undef KernelBase
55 #endif
57 #define KernelBase TaskResBase->trb_KernelBase
59 #endif /* TASKRES_INTERN_H */