thrd_detach
From cppreference.net
Concurrency support library
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definido en el encabezado
<threads.h>
|
||
|
int
thrd_detach
(
thrd_t
thr
)
;
|
(desde C11) | |
Desvincula el hilo identificado por
thr
del entorno actual. Los recursos mantenidos por el hilo se liberarán automáticamente una vez que el hilo finalice.
Contenidos |
Parámetros
| thr | - | identificador del hilo a desvincular |
Valor de retorno
thrd_success si es exitoso, thrd_error en caso contrario.
Referencias
- Estándar C17 (ISO/IEC 9899:2018):
-
- 7.26.5.3 La función thrd_detach (p: 280)
- Estándar C11 (ISO/IEC 9899:2011):
-
- 7.26.5.3 La función thrd_detach (p: 383-384)
Véase también
|
(C11)
|
bloquea hasta que un hilo termine
(función) |
|
C++ documentation
para
detach
|
|