std::lock
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>| Déclaré dans l'en-tête <mutex>
|
||
template< class Lockable1, class Lockable2, class LockableN... > void lock( Lockable1& lock1, Lockable2& lock2, LockableN& lockn... ); |
(depuis C++11) | |
Verrouille la donnée
Lockable objets lock1, lock2, ..., lockn l'aide d'un algorithme d'évitement de blocage pour éviter une impasse .Original:
Locks the given
Lockable objects lock1, lock2, ..., lockn using a deadlock avoidance algorithm to avoid deadlock.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.
Les objets sont verrouillés par une série indéterminée d'appels à
lock, try_lock, unlock. Si un appel à lock ou unlock entraîne une exception, unlock est appelée pour tous les objets verrouillés avant rethrowing .Original:
The objects are locked by an unspecified series of calls to
lock, try_lock, unlock. If a call to lock or unlock results in an exception, unlock is called for any locked objects before rethrowing.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
| lock1, lock2, ... , lockn | - | l' Lockable objets à verrouillerOriginal: |