Matt Jones wrote:
+        if ((req->priority >= min ||
+             req->priority == THREAD_PRIORITY_IDLE) ||
+            (req->priority <= max ||
+             req->priority == THREAD_PRIORITY_TIME_CRITICAL))
+            thread->priority = req->priority;
+    }

This doesn't look correct. There should be an && in there instead of one of the || operators.

--
Rob Shearman



Reply via email to