mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Add ASSERT_INTERRUPTS_DISABLED in Task::fromPID().
This commit is contained in:
parent
63e5583c18
commit
10347b9ae8
1 changed files with 1 additions and 0 deletions
|
@ -647,6 +647,7 @@ static bool contextSwitch(Task* t)
|
|||
|
||||
Task* Task::fromPID(pid_t pid)
|
||||
{
|
||||
ASSERT_INTERRUPTS_DISABLED();
|
||||
for (auto* task = s_tasks->head(); task; task = task->next()) {
|
||||
if (task->pid() == pid)
|
||||
return task;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue