1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +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

@ -978,10 +978,10 @@ inline ProcessID Thread::pid() const
}
#define VERIFY_PROCESS_BIG_LOCK_ACQUIRED(process) \
VERIFY(process->big_lock().own_lock());
VERIFY(process->big_lock().is_locked_by_current_thread());
#define VERIFY_NO_PROCESS_BIG_LOCK(process) \
VERIFY(!process->big_lock().own_lock());
VERIFY(!process->big_lock().is_locked_by_current_thread());
inline static KResultOr<NonnullOwnPtr<KString>> try_copy_kstring_from_user(const Kernel::Syscall::StringArgument& string)
{