mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 19:37:35 +00:00
Kernel: Don't call Thread::set_should_die() twice on every thread
This stops the "should already die" debug spam we've been seeing.
This commit is contained in:
parent
3c7782fdbe
commit
8c694ed6eb
1 changed files with 0 additions and 1 deletions
|
@ -246,7 +246,6 @@ void Thread::die_if_needed()
|
||||||
[[maybe_unused]] auto rc = unlock_process_if_locked(unlock_count);
|
[[maybe_unused]] auto rc = unlock_process_if_locked(unlock_count);
|
||||||
|
|
||||||
ScopedCritical critical;
|
ScopedCritical critical;
|
||||||
set_should_die();
|
|
||||||
|
|
||||||
// Flag a context switch. Because we're in a critical section,
|
// Flag a context switch. Because we're in a critical section,
|
||||||
// Scheduler::yield will actually only mark a pending scontext switch
|
// Scheduler::yield will actually only mark a pending scontext switch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue