std::thread - cppreference.com
De cppreference.com
<tbody> </tbody>
| Definido no cabeçalho <thread> |
||
|
|
(desde C++11) | |
A classe thread representa um único segmento de execução. Threads permitem que várias peças de código sejam executadas de forma assíncrona e simultaneamente.
Tipos de membro
Tipo de membro Original: Member type The text has been machine-translated via Google Translate. |
Definition |
native_handle_type
|
Definida pela implementação Original: implementation-defined The text has been machine-translated via Google Translate. |
Aulas-Membros
representa o id de um segmento Original: represents the id of a thread The text has been machine-translated via Google Translate. (public class membro) [edit] | |
Funções de membro
constrói objeto novo segmento Original: constructs new thread object The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
destrói o objeto linha, linha de base deve ser unido ou individual Original: destructs the thread object, underlying thread must be joined or detached The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
| moves the thread object (função pública membro) [edit] | |
Observadores Original: Observers The text has been machine-translated via Google Translate. | |
verifica se o segmento está acopláveis, ou seja, potencialmente executado no contexto paralelo Original: checks whether the thread is joinable, i.e. potentially running in parallel context The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
| retorna o ID do thread (função pública membro) [edit] | |
retorna o identificador segmento subjacente definida pela implementação Original: returns the underlying implementation-defined thread handle The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
[estática] |
retorna o número de threads simultâneos suportados pela implementação Original: returns the number of concurrent threads supported by the implementation The text has been machine-translated via Google Translate. (função public static membro) [edit] |
Operações Original: Operations The text has been machine-translated via Google Translate. | |
| espera que um objeto thread termine sua execução antes de sair da função (função pública membro) [edit] | |
permite a thread para executar de forma independente do identificador segmento Original: permits the thread to execute independently from the thread handle The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
| troca dois objetos thread (função pública membro) [edit] | |
Não-membros funções
o algoritmo especializado std::swap Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. (modelo de função) [edit] | |