std::thread::id
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <thread>
|
||
class thread::id; |
(desde C++11) | |
O
thread::id classe é uma classe, leve trivialmente copiável, que serve como um identificador único de objetos std::thread. Original:
The class
thread::id is a lightweight, trivially copyable class that serves as a unique identifier of std::thread objects. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
As instâncias dessa classe também pode conter o valor especial distinto que não representa qualquer segmento. Uma vez que a thread termina, o valor de
std::thread::id pode ser reutilizado por outro segmento.Original:
Instances of this class may also hold the special distinct value that does not represent any thread. Once a thread has finished, the value of
std::thread::id may be reused by another thread.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Esta classe foi projetada para uso como chave em recipientes associativas, ambos ordenados e não ordenados.
Original:
This class is designed for use as key in associative containers, both ordered and unordered.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Funções de membro
constrói um id que não representa um fio Original: constructs an id that does not represent a thread 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) | |
Não-membros funções
compara dois objetos thread::idOriginal: compares two thread::id objectsThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) | |
serializa um objeto thread::idOriginal: serializes a thread::id objectThe 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) | |
Classes auxiliares
std :: especializada de hash Original: specializes std::hash The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (especialização modelo. classe) | |
Veja também
| retorna o ID do thread (função pública membro) | |