mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05: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);
|
||||
|
||||
ScopedCritical critical;
|
||||
set_should_die();
|
||||
|
||||
// Flag a context switch. Because we're in a critical section,
|
||||
// Scheduler::yield will actually only mark a pending scontext switch
|
||||
|
|
Loading…
Add table
Reference in a new issue