#include <oskit/threads/pthread.h>int pthread_detach(pthread_t tid);
The thread specified by tid is detached from its parent. If the thread has already exited, its resources are released.
- tid
- The thread id of the thread being detached.
Returns zero on success. EINVAL if tid refers to a non-existent thread.
pthread_join, pthread_create, pthread_exit