std::unique_lock::unlock
De cppreference.com
< cpp | thread | unique lock
![]() |
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. |
void unlock(); |
(depuis C++11) | |
Déverrouille le mutex associé .
Original:
Unlocks the associated mutex.
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.
std::system_error est levée si il n'y a pas mutex associé ou si le mutex n'est pas verrouillé .
Original:
std::system_error is thrown if there is no associated mutex or if the mutex is not locked.
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.
Sommaire |
[modifier] 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.
[modifier] Retourne la valeur
(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.
[modifier] Exceptions
- Toutes les exceptions levées par mutex()->unlock()Original:Any exceptions thrown by mutex()->unlock()The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- S'il n'y a pas associé mutex, std::system_error avec un code d'erreur std::errc::operation_not_permittedOriginal:If there is no associated mutex, std::system_error with an error code of std::errc::operation_not_permittedThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- Si le mutex n'est pas verrouillé, std::system_error avec un code d'erreur std::errc::resource_deadlock_would_occurOriginal:If the mutex is not locked, std::system_error with an error code of std::errc::resource_deadlock_would_occurThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
locks the associated mutex (fonction membre publique) | |
dissocie le mutex associé sans le déverrouiller Original: disassociates the associated mutex without unlocking it 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) |