1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:35:08 +00:00

Kernel: Make it easier to add Thread block states in the future.

This commit is contained in:
Andreas Kling 2019-07-13 20:14:39 +02:00
parent 302cae5c2f
commit 54e79a4640
2 changed files with 7 additions and 1 deletions

View file

@ -181,6 +181,9 @@ const char* to_string(Thread::State state)
return "Receive";
case Thread::BlockedSnoozing:
return "Snoozing";
case Thread::__Begin_Blocked_States__:
case Thread::__End_Blocked_States__:
break;
}
kprintf("to_string(Thread::State): Invalid state: %u\n", state);
ASSERT_NOT_REACHED();