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
commit 4da2521606
Notes: sideshowbarker 2024-07-19 13:10:40 +09:00
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);