<div class="t-tr-text">C + +: concetti<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> Lockable
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Lockable
estende il concetto BasicLockable
includere bloccaggio tentato.Lockable
concept extends the BasicLockable
concept to include attempted locking.You can help to correct and verify the translation. Click here for instructions.
[modifica] Requisiti
L
tipo da Lockable
, deve soddisfare la condizione di cui sopra, nonché le seguenti:L
to be Lockable
, it must meet the above condition as well as the following:You can help to correct and verify the translation. Click here for instructions.
Expression | Effects | Return value |
---|---|---|
m.try_lock() | Attempts to acquire the lock for the current execution agent without blocking. If an exception is thrown, no lock is obtained. | true if the lock was acquired, false otherwise |