mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
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.
This commit is contained in:
parent
0536a4ff41
commit
704e1c2e3d
Notes:
sideshowbarker
2024-07-18 08:55:28 +09:00
Author: https://github.com/tomuta
Commit: 704e1c2e3d
Pull-request: https://github.com/SerenityOS/serenity/pull/8791
Issue: https://github.com/SerenityOS/serenity/issues/8787
3 changed files with 12 additions and 11 deletions
|
@ -11,7 +11,7 @@ namespace Kernel {
|
|||
KResultOr<FlatPtr> Process::sys$yield()
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
Thread::current()->yield_without_holding_big_lock();
|
||||
Thread::current()->yield_and_release_relock_big_lock();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue