mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-02 22:04:42 +00:00
Kernel: Add some implied auto qualifiers
This commit is contained in:
committed by
Andreas Kling
parent
9346b9589f
commit
04d75f4ff9
@@ -247,7 +247,7 @@ bool Scheduler::yield()
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
|
||||
auto current_thread = Thread::current();
|
||||
auto const* current_thread = Thread::current();
|
||||
dbgln_if(SCHEDULER_DEBUG, "Scheduler[{}]: yielding thread {} in_irq={}", Processor::current_id(), *current_thread, Processor::current_in_irq());
|
||||
VERIFY(current_thread != nullptr);
|
||||
if (Processor::current_in_irq() || Processor::in_critical()) {
|
||||
@@ -274,7 +274,7 @@ bool Scheduler::context_switch(Thread* thread)
|
||||
|
||||
thread->did_schedule();
|
||||
|
||||
auto from_thread = Thread::current();
|
||||
auto* from_thread = Thread::current();
|
||||
if (from_thread == thread)
|
||||
return false;
|
||||
|
||||
@@ -457,7 +457,7 @@ void Scheduler::timer_tick(const RegisterState& regs)
|
||||
VERIFY_INTERRUPTS_DISABLED();
|
||||
VERIFY(Processor::current_in_irq());
|
||||
|
||||
auto current_thread = Processor::current_thread();
|
||||
auto* current_thread = Processor::current_thread();
|
||||
if (!current_thread)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user