Kernel+LibPthread: Implement pthread_detach()

This commit is contained in:
Andreas Kling 2019-12-07 14:47:00 +01:00
commit 95b086f47f
Notes: sideshowbarker 2024-07-19 10:56:29 +09:00
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