◐ Shell
clean mode source ↗

std::thread::id – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<thread>

class thread::id;

(seit C++11)

Die Klasse thread::id ist ein leichtes, trivial kopierbar Klasse, die als eindeutige Kennung std::thread Objekte dient .

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.

Instanzen dieser Klasse können auch halten Sie die speziellen eindeutigen Wert, der es sich nicht jeden Thread. Sobald ein Thread beendet ist, kann der Wert der std::thread::id von einem anderen Thread verwendet werden .

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.

Diese Klasse für die Verwendung als Schlüssel in assoziativen Containern ausgelegt ist, ließ beide und ungeordnete .

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.

Member-Funktionen

konstruiert eine ID, die es sich nicht einen Faden

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.


(öffentliche Elementfunktion)

Non-Member-Funktionen

Helper-Klassen

spezialisiert std :: 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.


(class Template-Spezialisierung)

Siehe auch

liefert die ID des Threads
(öffentliche Elementfunktion) [edit]