From c767cfe15961f3038f0f255949160e0a8bda79e9 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Wed, 16 Oct 2024 22:58:03 +0100 Subject: [PATCH] Ignore thread_set_priority when BSD enabled --- src/threads/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/threads/thread.c b/src/threads/thread.c index 230789e..6657d9f 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -382,6 +382,8 @@ thread_foreach (thread_action_func *func, void *aux) void thread_set_priority (int new_priority) { + if (thread_mlfqs) + return; thread_current ()->priority = new_priority; }