1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

Kernel+LibPthread: Implement pthread_detach()

This commit is contained in:
Andreas Kling 2019-12-07 14:47:00 +01:00
parent 9ddfe694f2
commit 95b086f47f
4 changed files with 29 additions and 1 deletions

View file

@ -85,6 +85,11 @@ int pthread_join(pthread_t thread, void** exit_value_ptr)
return syscall(SC_join_thread, thread, exit_value_ptr);
}
int pthread_detach(pthread_t thread)
{
return syscall(SC_detach_thread, thread);
}
int pthread_mutex_init(pthread_mutex_t* mutex, const pthread_mutexattr_t* attributes)
{
// FIXME: Implement mutex attributes