mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Kernel: Add implied auto-specifiers in Locking
As per clang-tidy.
This commit is contained in:
parent
a7209ca0f9
commit
1ad4a190b5
Notes:
sideshowbarker
2024-07-17 22:44:55 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 1ad4a190b5
Pull-request: https://github.com/SerenityOS/serenity/pull/11201
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/davidot
2 changed files with 6 additions and 6 deletions
|
@ -15,7 +15,7 @@ namespace Kernel {
|
|||
void track_lock_acquire(LockRank rank)
|
||||
{
|
||||
if constexpr (LOCK_RANK_ENFORCEMENT) {
|
||||
auto thread = Thread::current();
|
||||
auto* thread = Thread::current();
|
||||
if (thread && !thread->is_crashing())
|
||||
thread->track_lock_acquire(rank);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ void track_lock_acquire(LockRank rank)
|
|||
void track_lock_release(LockRank rank)
|
||||
{
|
||||
if constexpr (LOCK_RANK_ENFORCEMENT) {
|
||||
auto thread = Thread::current();
|
||||
auto* thread = Thread::current();
|
||||
if (thread && !thread->is_crashing())
|
||||
thread->track_lock_release(rank);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue