std::thread
De cppreference.com
| Defined in header <thread>
|
||
| class thread; |
(depuis C++11) | |
La classe thread représente un seul thread d'exécution ou processus léger. Les threads permettent à plusieurs morceaux de codes de s'exécuter simultanément et de manière asynchrone.
[modifier] Types des membres
| Type du membre | Définition |
native_handle_type
|
Définie par l'implémentation |
[modifier] Classes des membres
| représente 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) | |
[modifier] 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) | |
| Détruit l'objet thread, thread sous-jacente doit être joint ou détaché 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) | |
| déplace 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. | |
| vérifie si le fil est joignable, soit potentiellement s'exécute dans un contexte parallèle 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 définie par l'implémentation 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 simultanés 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 d’exécution 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'exécuter indépendamment 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) | |
[modifier] Fonctions annexes
| (C++11) |
l'algorithme spécialisé 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 générique) |

