mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 12:08:14 +00:00
Kernel: Disable big process lock for sys$gettid()
This syscall reads a read only value from the current thread, and hence has no need for the big process lock.
This commit is contained in:
parent
638598b15d
commit
5c10fb4007
2 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ KResultOr<FlatPtr> Process::sys$get_thread_name(pid_t tid, Userspace<char*> buff
|
|||
|
||||
KResultOr<FlatPtr> Process::sys$gettid()
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
REQUIRE_PROMISE(stdio);
|
||||
return Thread::current()->tid().value();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue