2026-03-18 21:08:49 +00:00
|
|
|
#include "pthread.h"
|
|
|
|
|
|
|
|
|
|
#include <errno.h>
|
2026-05-28 20:39:54 +01:00
|
|
|
#include <magenta/handle.h>
|
|
|
|
|
#include <magenta/object.h>
|
|
|
|
|
#include <magenta/signal.h>
|
|
|
|
|
#include <magenta/task.h>
|
2026-03-18 21:08:49 +00:00
|
|
|
#include <pthread.h>
|
|
|
|
|
#include <sys/mman.h>
|
|
|
|
|
|
|
|
|
|
int pthread_detach(struct __pthread *thread)
|
|
|
|
|
{
|
|
|
|
|
thread->thr_flags |= THREAD_DETACHED;
|
|
|
|
|
kern_handle_close(thread->thr_handle);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|