1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:48:13 +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:
Tom 2021-07-15 19:45:22 -06:00 committed by Andreas Kling
parent 0536a4ff41
commit 704e1c2e3d
3 changed files with 12 additions and 11 deletions

View file

@ -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;
}