From 63b3d9875dd82765851661f0f65fc9faf6808d01 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 18 Apr 2025 23:42:03 +0300 Subject: [PATCH] Kernel: Fix `Thread::block_with_eintr*` functions I was using wrong block function, `block_with_timeout` instead of `block_with_wake_time`. This caused functions to block way too long and caused a lot of hangs. --- kernel/kernel/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/Thread.cpp b/kernel/kernel/Thread.cpp index a8713c71..68ea8414 100644 --- a/kernel/kernel/Thread.cpp +++ b/kernel/kernel/Thread.cpp @@ -593,7 +593,7 @@ namespace Kernel { if (is_interrupted_by_signal()) return BAN::Error::from_errno(EINTR); - thread_blocker.block_with_timeout_ns(wake_time_ns); + thread_blocker.block_with_wake_time_ns(wake_time_ns); if (is_interrupted_by_signal()) return BAN::Error::from_errno(EINTR); if (etimedout && SystemTimer::get().ms_since_boot() >= wake_time_ns)