mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
LibPthread+Kernel: Add pthread_kill() and the thread_kill syscall
This commit is contained in:
parent
ca71d99c66
commit
e37f9fa7db
Notes:
sideshowbarker
2024-07-18 10:00:22 +09:00
Author: https://github.com/alimpfard
Commit: e37f9fa7db
Pull-request: https://github.com/SerenityOS/serenity/pull/8572
5 changed files with 70 additions and 2 deletions
|
@ -151,6 +151,12 @@ int pthread_join(pthread_t thread, void** exit_value_ptr)
|
|||
__RETURN_PTHREAD_ERROR(rc);
|
||||
}
|
||||
|
||||
int pthread_kill(pthread_t thread, int sig)
|
||||
{
|
||||
int rc = syscall(SC_kill_thread, thread, sig);
|
||||
__RETURN_PTHREAD_ERROR(rc);
|
||||
}
|
||||
|
||||
int pthread_detach(pthread_t thread)
|
||||
{
|
||||
int rc = syscall(SC_detach_thread, thread);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue