@@ -21,7 +21,7 @@ void Mutex::lock(Mode mode, [[maybe_unused]] LockLocation const& location)
21
21
if constexpr (LOCK_IN_CRITICAL_DEBUG)
22
22
VERIFY_INTERRUPTS_ENABLED ();
23
23
VERIFY (mode != Mode::Unlocked);
24
- auto current_thread = Thread::current ();
24
+ auto * current_thread = Thread::current ();
25
25
26
26
SpinlockLocker lock (m_lock);
27
27
bool did_block = false ;
@@ -148,7 +148,7 @@ void Mutex::unlock()
148
148
if constexpr (LOCK_IN_CRITICAL_DEBUG)
149
149
VERIFY_INTERRUPTS_ENABLED ();
150
150
VERIFY (!Processor::current_in_irq ());
151
- auto current_thread = Thread::current ();
151
+ auto * current_thread = Thread::current ();
152
152
SpinlockLocker lock (m_lock);
153
153
Mode current_mode = m_mode;
154
154
if constexpr (LOCK_TRACE_DEBUG) {
@@ -260,7 +260,7 @@ auto Mutex::force_unlock_if_locked(u32& lock_count_to_restore) -> Mode
260
260
// NOTE: This may be called from an interrupt handler (not an IRQ handler)
261
261
// and also from within critical sections!
262
262
VERIFY (!Processor::current_in_irq ());
263
- auto current_thread = Thread::current ();
263
+ auto * current_thread = Thread::current ();
264
264
SpinlockLocker lock (m_lock);
265
265
auto current_mode = m_mode;
266
266
switch (current_mode) {
@@ -323,7 +323,7 @@ void Mutex::restore_lock(Mode mode, u32 lock_count, [[maybe_unused]] LockLocatio
323
323
VERIFY (mode != Mode::Unlocked);
324
324
VERIFY (lock_count > 0 );
325
325
VERIFY (!Processor::current_in_irq ());
326
- auto current_thread = Thread::current ();
326
+ auto * current_thread = Thread::current ();
327
327
bool did_block = false ;
328
328
SpinlockLocker lock (m_lock);
329
329
switch (mode) {
0 commit comments