The pthread_detach function

Name

pthread_detach -- 

Synopsis

#include <pthread.h>

int pthread_detach (pthread_t *thread_ptr);

Description

The pthread_detach function marks the threads's internal data structure for deletion.

Returns

The pthread_detach function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.

Implementation Notes

None