std::thread
De cppreference.com
| Definido en la cabecera <thread>
|
||
| class thread; |
(desde C++11) | |
La clase thread representa a un hilo en ejecución. Los hilos permiten que múltiples fragmentos de código se ejecuten de forma asíncrona y simultánea.
[editar] Tipos de miembros
| Miembro de tipo
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
native_handle_type
|
' Definido por la implantación
Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Clases de miembros
| representa el identificador' de un hilo Original: represents the id of a thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro de clase público) |
[editar] Las funciones miembro
| construye un nuevo thread (función miembro público) | |
| destruye el objeto Thread, se debe haber ejecutado join() o detach previamente (función miembro público) | |
| mueve el objeto thread a un nuevo identificador (función miembro público) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| comprueba si el objeto representa a un hilo actualmente en ejecución o a la espera de recibir un join() (función miembro público) | |
| devuelve el id del hilo (función miembro público) | |
| devuelve el handle del sistema operativo relativo al hilo (función miembro público) | |
| [estático] |
devuelve el número de hilos simultáneos soportados por la implementación (función miembro público estático) |
Original: Operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| espera a que el hilo termine su ejecución (función miembro público) | |
| desvincula el objeto del hilo en ejecución, ya no se puede hacer join y se puede destruir libremente (función miembro público) | |
| swaps dos objetos hilo Original: swaps two thread objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro público) | |
[editar] Terceros funciones
| (C++11) |
el algoritmo se especializa std::swap Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (plantilla de función) |

