Create ptread_detach. (#11)

Create ptread_detach.
This commit is contained in:
João Vitor Teixeira
2021-12-14 15:12:45 -03:00
committed by GitHub
parent e197ed1ac7
commit 3b33c3467d
2 changed files with 70 additions and 0 deletions

View File

@@ -362,6 +362,17 @@ int pthread_getschedparam( pthread_t thread,
int pthread_join( pthread_t thread,
void ** retval );
/**
* @brief Marks the thread identified by thread as detached.
*
* @see https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_detach.html
*
* @retval 0 - Upon successful completion.
* @retval EINVAL - The implementation has detected that the value specified by thread does not refer
* to a joinable thread.
*/
int pthread_detach(pthread_t thread);
/**
* @brief Destroy a mutex.
*