chsvlib
chsv helper source code

◆ chsv_thrd_detach()

int Chusov::ExecutionControl::chsv_thrd_detach ( chsv_thrd_t  thr)
noexcept

Specifies that the specified thread has to be disposed by the host operating system when the thread terminates.

Parameters
[in]thris 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.