1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

Kernel: {Mutex,Spinlock}::own_lock() => is_locked_by_current_thread()

Rename these API's to make it more clear what they are checking.
This commit is contained in:
Andreas Kling 2021-08-29 12:48:43 +02:00
parent d9da513959
commit 0b4671add7
13 changed files with 52 additions and 52 deletions

View file

@ -922,7 +922,7 @@ KResult Process::exec(String path, Vector<String> arguments, Vector<String> envi
// We need to enter the scheduler lock before changing the state
// and it will be released after the context switch into that
// thread. We should also still be in our critical section
VERIFY(!g_scheduler_lock.own_lock());
VERIFY(!g_scheduler_lock.is_locked_by_current_thread());
VERIFY(Processor::in_critical() == 1);
g_scheduler_lock.lock();
current_thread->set_state(Thread::State::Running);