diff options
author | Tom <tomut@yahoo.com> | 2021-07-15 19:45:22 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-16 20:30:04 +0200 |
commit | 704e1c2e3d4e6d1023c0ffff64328aae49ce9e76 (patch) | |
tree | b91da83b339a2c6cfb91a333c72c2e61a121d7bd /Kernel/Thread.h | |
parent | 0536a4ff413e8bf9f81ca313ef7a67e345f39be4 (diff) | |
download | serenity-704e1c2e3d4e6d1023c0ffff64328aae49ce9e76.zip |
Kernel: Rename functions to be less confusing
Thread::yield_and_release_relock_big_lock releases the big lock, yields
and then relocks the big lock.
Thread::yield_assuming_not_holding_big_lock yields assuming the big
lock is not being held.
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 64916838d5..7b75b2a2b4 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -819,7 +819,7 @@ public: while (state() == Thread::Stopped) { lock.unlock(); // We shouldn't be holding the big lock here - yield_while_not_holding_big_lock(); + yield_assuming_not_holding_big_lock(); lock.lock(); } } @@ -905,7 +905,7 @@ public: // Yield to the scheduler, and wait for us to resume unblocked. VERIFY(!g_scheduler_lock.own_lock()); VERIFY(Processor::current().in_critical()); - yield_while_not_holding_big_lock(); + yield_assuming_not_holding_big_lock(); VERIFY(Processor::current().in_critical()); ScopedSpinLock block_lock2(m_block_lock); @@ -1341,8 +1341,8 @@ private: bool m_is_profiling_suppressed { false }; - void yield_without_holding_big_lock(); - void yield_while_not_holding_big_lock(); + void yield_and_release_relock_big_lock(); + void yield_assuming_not_holding_big_lock(); void drop_thread_count(bool); }; |