mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +00:00
Kernel: Dequeue dying threads from WaitQueue
If a thread is waiting but getting killed, we need to dequeue the thread from the WaitQueue so that a potential wake before finalization doesn't happen.
This commit is contained in:
parent
9495eeb075
commit
41d2a0e9f7
4 changed files with 37 additions and 7 deletions
|
@ -521,6 +521,7 @@ public:
|
|||
private:
|
||||
IntrusiveListNode m_runnable_list_node;
|
||||
IntrusiveListNode m_wait_queue_node;
|
||||
WaitQueue* m_wait_queue { nullptr };
|
||||
|
||||
private:
|
||||
friend class SchedulerData;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue