Specifies that the specified thread has to be disposed by the host operating system when the thread terminates.
- Parameters
-
[in] | thr | is an identifier of the thread to be detached. The thread must not be previously detached or joined to any other thread. |
- Returns
- On success the function returns chsv_thrd_success. On failure the function returns chsv_thrd_error setting the corresponding errno code.
The function implements a behaviour of the thrd_detach function defined in the ISO/IEC 9899:2011 (aka C11) standard.
- See also
- chsv_thrd_create;
chsv_thrd_join;
chsv_thrd_exit.