From 7d8e6464df69a552415906d23e3f24eb8faa9268 Mon Sep 17 00:00:00 2001 From: jewelcodes Date: Tue, 8 Oct 2024 19:47:24 -0400 Subject: [PATCH] sched: scheduler lock fix --- src/sched/sched.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sched/sched.c b/src/sched/sched.c index 7d14c49..37c7257 100644 --- a/src/sched/sched.c +++ b/src/sched/sched.c @@ -331,7 +331,8 @@ bool schedBusy() { void schedule() { if(!scheduling || !processes || !threads) return; - acquireLockBlocking(lock); + //acquireLockBlocking(lock); + if(!acquireLock(lock)) return; setLocalSched(false); if(!schedBusy()) {