BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 843a5201164f3cff1b57989ec7625ccf8bd05d5b / task / scheduler.c

// Related

Nucleus

Barry Private TaskQueue structure 843a520 (3 years, 3 months ago)
diff --git a/task/scheduler.c b/task/scheduler.c
index cad926d..06012ae 100644
--- a/task/scheduler.c
+++ b/task/scheduler.c
@@ -46,7 +46,7 @@ highest_priority_queue(void)
 {
 	enum Priority p;
 	for (p = PRIORITY_COUNT - 1; p > 0; p--) {
-		if (readyQueue[p]->start)
+		if (tasks_in_queue(readyQueue[p]))
 			return readyQueue[p];
 	}
 	return NULL;