Files
rosetta/lib/libc/pthread/thread/pthread_detach.c
T

18 lines
335 B
C

#include "pthread.h"
#include <errno.h>
#include <magenta/handle.h>
#include <magenta/object.h>
#include <magenta/signal.h>
#include <magenta/task.h>
#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;
}