std::thread::id
Материал из 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. |
| Заголовочный файл <thread>
|
||
| class thread::id; |
(начиная с C++11) | |
Класс
thread::id это легкий, тривиально копируемой класса, который служит уникальным идентификатором 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.
Экземпляры этого класса может также проводить специальные отдельные значения, которые не представляют никакой нити. Как только поток завершится, значение
std::thread::id могут быть повторно использованы другой поток.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.
Этот класс предназначен для использования в качестве ключа в ассоциативных контейнерах, как упорядоченные и неупорядоченные.
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.
Содержание |
[править] Член функций
| создает идентификатор, который не представляет собой поток 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. (public функция-член) | |
[править] Не являющиеся членами функций
| сравнивает два объекта 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. (функция) | |
| сериализует thread::id объектаOriginal: 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. (шаблон функции) | |
[править] Вспомогательные классы
| Специализируется STD :: хэш 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. (специализация шаблона класса) | |
[править] См. также
| возвращает идентификатор потока (public функция-член) | |