Kernel: Semaphores and Threads can now be blocked with timeout

This commit is contained in:
2024-02-09 15:18:34 +02:00
parent 534b3e6a9a
commit ed0b1a86aa
17 changed files with 86 additions and 78 deletions

View File

@@ -195,7 +195,7 @@ namespace Kernel::Input
while (true)
{
if (m_event_queue.empty())
TRY(Thread::current().block_or_eintr(m_semaphore));
TRY(Thread::current().block_or_eintr_indefinite(m_semaphore));
CriticalScope _;
if (m_event_queue.empty())

View File

@@ -179,7 +179,7 @@ namespace Kernel::Input
while (true)
{
if (m_event_queue.empty())
TRY(Thread::current().block_or_eintr(m_semaphore));
TRY(Thread::current().block_or_eintr_indefinite(m_semaphore));
CriticalScope _;
if (m_event_queue.empty())