1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 21:38:11 +00:00

Kernel: Rename Condition state to Blocked now we only have one blocking mechanism :)

This commit is contained in:
Robin Burchell 2019-07-19 09:37:34 +02:00 committed by Andreas Kling
parent d2ca91c024
commit b13f1699fc
3 changed files with 7 additions and 17 deletions

View file

@ -216,10 +216,6 @@ bool Thread::SemiPermanentBlocker::should_unblock(Thread&, time_t, long)
void Thread::consider_unblock(time_t now_sec, long now_usec)
{
switch (state()) {
case Thread::__Begin_Blocked_States__:
case Thread::__End_Blocked_States__:
ASSERT_NOT_REACHED();
[[fallthrough]];
case Thread::Invalid:
case Thread::Runnable:
case Thread::Running:
@ -227,7 +223,7 @@ void Thread::consider_unblock(time_t now_sec, long now_usec)
case Thread::Stopped:
/* don't know, don't care */
return;
case Thread::BlockedCondition:
case Thread::Blocked:
ASSERT(m_blocker);
if (m_blocker->should_unblock(*this, now_sec, now_usec)) {
unblock();