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:
parent
9ddfe694f2
commit
95b086f47f
4 changed files with 29 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue