mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-18 13:44:50 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user