std::lock_guard::lock_guard
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> explicit lock_guard( mutex_type& m ); |
(1) | (depuis C++11) |
lock_guard( mutex_type& m, std::adopt_lock_t t ); |
(2) | (depuis C++11) |
Acquiert la propriété du mutex
m .Original:
Acquires ownership of the given mutex
m.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.
1)
Si
m n'est pas un mutex récursif, nécessite que le thread actuel ne m propre. Appelle effectivement m.lock() .Original:
If
m is not a recursive mutex, requires that the current thread does not own m. Effectively calls m.lock().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.
2)
Nécessite que le thread actuel possède
m .Original:
Requires that the current thread owns
m.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.
Le comportement est indéfini si
m est détruit avant que l'objet lock_guard est .Original:
The behavior is undefined if
m is destroyed before the lock_guard object is.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
| m | - | mutex d'acquérir la propriété
Original: mutex to acquire ownership of The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| t | - | paramètre tag permet de sélectionner non verrouillable version du constructeur
Original: tag parameter used to select non-locking version of the constructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |