summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-25 13:03:49 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-25 13:03:49 +0100
commit500df578fe5b24d14062d030c5628cbb4b69d3a6 (patch)
treee484af9a08e7463e95e947f8e8af3b94fb3d6645 /Kernel/Process.h
parent108b663618e893c804c150205a21f2e8d95088c2 (diff)
downloadserenity-500df578fe5b24d14062d030c5628cbb4b69d3a6.zip
LibGUI+Kernel: Add a GLock class (userspace mutex.)
It's basically a userspace port of the kernel's Lock class. Added gettid() and donate() syscalls to support the timeslice donation feature we already enjoyed in the kernel.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 66d0770c41..cc15c1c251 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -97,6 +97,8 @@ public:
void die();
void finalize();
+ int sys$gettid();
+ int sys$donate(int tid);
pid_t sys$setsid();
pid_t sys$getsid(pid_t);
int sys$setpgid(pid_t pid, pid_t pgid);