mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibPthread+Kernel: Add pthread_kill() and the thread_kill syscall
This commit is contained in:
parent
ca71d99c66
commit
e37f9fa7db
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