| Definido no cabeçalho <thread>
|
||
class 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. You can help to correct and verify the translation. Click here for instructions. |
Definition |
native_handle_type
|
Definida pela implementação
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. |
Aulas-Membros
representa o id de um segmento 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. (public class membro) | |
Funções de membro
constrói objeto novo segmento Original: constructs new thread object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
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. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
| moves the thread object (função pública membro) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
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. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
| retorna o ID do thread (função pública membro) | |
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. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
[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. You can help to correct and verify the translation. Click here for instructions. (função public static membro) |
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 que um objeto thread termine sua execução antes de sair da função (função pública membro) | |
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. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
| troca dois objetos thread (função pública membro) | |
Não-membros funções
(C++11) |
o algoritmo especializado 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. (modelo de função) |