std::thread::hardware_concurrency
De 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. |
<metanoindex/>
<tbody> </tbody> static unsigned hardware_concurrency(); |
(depuis C++11) | |
Retourne le nombre de threads simultanés pris en charge par la mise en œuvre. La valeur doit être considérée seulement un soupçon .
Original:
Returns number of concurrent threads supported by the implementation. The value should be considered only a hint.
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.
Paramètres
(Aucun)
Original:
(none)
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.
Retourne la valeur
nombre de threads simultanés pris en charge. Si la valeur n'est pas bien défini ou non calculables, les rendements
0 .Original:
number of concurrent threads supported. If the value is not well defined or not computable, returns
0.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.
Exceptions
Exemple
| This section is incomplete Reason: no example |