1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibPthread+Kernel: Add pthread_kill() and the thread_kill syscall

This commit is contained in:
Ali Mohammad Pur 2021-07-09 06:26:29 +04:30 committed by Andreas Kling
parent ca71d99c66
commit e37f9fa7db
5 changed files with 70 additions and 2 deletions

View file

@ -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);