std::thread
De cppreference.com
<tbody>
</tbody>
| Dclar dans l'en-tte <thread>
|
||
class thread; |
(depuis C++11) | |
La classe thread reprsente un seul thread d'excution ou processus lger. Les threads permettent plusieurs morceaux de codes de s'excuter simultanment et de manire asynchrone.
Types des membres
| Type du membre | Dfinition |
native_handle_type
|
Dfinie par l'implmentation |
Classes des membres
reprsente l'id d'un thread 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. (classe membre publique) | |
Fonctions membres
construit objet nouveau thread 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. (fonction membre publique) | |
Dtruit l'objet thread, thread sous-jacente doit tre joint ou dtach 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. (fonction membre publique) | |
dplace l'objet thread Original: moves the thread object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
vrifie si le fil est joignable, soit potentiellement s'excute dans un contexte parallle 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. (fonction membre publique) | |
retourne l'identifiant du thread 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. (fonction membre publique) | |
retourne le handle de thread sous-jacente dfinie par l'implmentation 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. (fonction membre publique) | |
[ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
retourne le nombre de threads simultans pris en charge par la mise en uvre 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. (fonction membre publique statique) |
Original: Operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
attend la fin dexcution d'un thread Original: waits for a thread to finish its execution The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
permet au thread de s'excuter indpendamment de son handle 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. (fonction membre publique) | |
change deux objets threads Original: swaps two thread objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
Fonctions annexes
(C++11) |
l'algorithme spcialis 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. (fonction gnrique) |