diff options
Diffstat (limited to 'Source/Kernel/TaskManager')
-rw-r--r-- | Source/Kernel/TaskManager/Task.ns.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Kernel/TaskManager/Task.ns.cpp b/Source/Kernel/TaskManager/Task.ns.cpp index 66119e8..8a41340 100644 --- a/Source/Kernel/TaskManager/Task.ns.cpp +++ b/Source/Kernel/TaskManager/Task.ns.cpp @@ -10,18 +10,18 @@ namespace Task { SimpleList <Process*> *processes = 0; //TODO : use a linked list instead SimpleList <Thread*> *threads = 0; +SimpleList <Thread*> *currentThread = 0; +Process* currentProcess = 0; +SimpleList<Thread*> *idleThread = 0; + +u32int nextpid = 1; + struct finished_thread_t { //Forms a linked list Thread* thread; u32int errcode; }; - SimpleList<finished_thread_t> *firstFinishedThread = 0; -SimpleList <Thread*> *currentThread = 0; -Process* currentProcess = 0; -SimpleList<Thread*> *idleThread = 0; - -u32int nextpid = 1; Thread* currThread() { return currentThread->v(); |