next up previous contents index
Next: 18.3.27 pthread_exit: Terminate a Up: 18.3 POSIX Threads Reference Previous: 18.3.25 pthread_create: Create a

18.3.26 pthread_detach: Detach a thread from its parent

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_detach(pthread_t tid);

DESCRIPTION

The thread specified by tid is detached from its parent. If the thread has already exited, its resources are released.

PARAMETERS

tid
The thread id of the thread being detached.

RETURNS

Returns zero on success. EINVAL if tid refers to a non-existent thread.

RELATED INFORMATION

pthread_join, pthread_create, pthread_exit



University of Utah Flux Research Group