mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
Add ASSERT_INTERRUPTS_DISABLED in Task::fromPID().
This commit is contained in:
parent
63e5583c18
commit
10347b9ae8
Notes:
sideshowbarker
2024-07-19 18:38:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/10347b9ae8c
@ -647,6 +647,7 @@ static bool contextSwitch(Task* t)
|
|||||||
|
|
||||||
Task* Task::fromPID(pid_t pid)
|
Task* Task::fromPID(pid_t pid)
|
||||||
{
|
{
|
||||||
|
ASSERT_INTERRUPTS_DISABLED();
|
||||||
for (auto* task = s_tasks->head(); task; task = task->next()) {
|
for (auto* task = s_tasks->head(); task; task = task->next()) {
|
||||||
if (task->pid() == pid)
|
if (task->pid() == pid)
|
||||||
return task;
|
return task;
|
||||||
|
Loading…
Reference in New Issue
Block a user