1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:58:11 +00:00

Scheduler: Move thread unblocking out of a lambda to help make things more readable

We also use a switch to explicitly make sure we handle all cases properly.
This commit is contained in:
Robin Burchell 2019-07-18 14:10:28 +02:00 committed by Andreas Kling
parent d19136ce07
commit 4da2521606
2 changed files with 120 additions and 123 deletions

View file

@ -120,6 +120,7 @@ public:
void set_state(State);
void send_signal(u8 signal, Process* sender);
void consider_unblock(time_t now_sec, long now_usec);
ShouldUnblockThread dispatch_one_pending_signal();
ShouldUnblockThread dispatch_signal(u8 signal);