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. |
| Defined in header <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.
目录 |
[编辑] 。成员函数。
| 。构建了一个ID,并不代表一个线程。 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. (公共成员函数) | |
[编辑] 。非成员函数。
| 。
比较两个 thread::id对象。Original: 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. (函数模板) | |
[编辑] 。 Helper类。
| 。专业的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. (类模板专业化) | |
[编辑] 。另请参阅。
| 返回“ID”的线程 Original: returns the id of the thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |