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.
This commit is contained in:
Bananymous 2025-04-18 23:42:03 +03:00
parent 8cd2d772b0
commit 63b3d9875d
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ namespace Kernel
{ {
if (is_interrupted_by_signal()) if (is_interrupted_by_signal())
return BAN::Error::from_errno(EINTR); 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()) if (is_interrupted_by_signal())
return BAN::Error::from_errno(EINTR); return BAN::Error::from_errno(EINTR);
if (etimedout && SystemTimer::get().ms_since_boot() >= wake_time_ns) if (etimedout && SystemTimer::get().ms_since_boot() >= wake_time_ns)