BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 4d3c382801026ca46da937de6d7261f1f6805d9e / task / clone.c

// Related

Nucleus

Barry Object Lists + replacing Task Queues 4d3c382 (3 years, 3 months ago)
diff --git a/task/clone.c b/task/clone.c
index 5e425fa..41cbc48 100644
--- a/task/clone.c
+++ b/task/clone.c
@@ -6,7 +6,7 @@
 #include <sys/types.h>
 #include <nucleus/task.h>
 
-extern TaskQueue *readyQueue[];
+extern ObjectList *readyQueue[];
 
 /* Clone a task */
 pid_t
@@ -24,7 +24,7 @@ clone(int flags)
 	child->eip = (uintptr_t) &&end;
 	asm volatile("mov %%esp, %0" : "=r" (child->esp));
 	asm volatile("mov %%ebp, %0" : "=r" (child->ebp));
-	add_to_queue(readyQueue[child->priority], child);
+	add(readyQueue[child->priority], child);
 	tid = child->tid;
 	put(child);
 end: