Conceptos C++: Lockable
De cppreference.com
![]() | Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
El concepto
Lockable
extiende el concepto BasicLockable
para incluir bloqueo intentado .Original:
The
Lockable
concept extends the BasicLockable
concept to include attempted locking.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.
[editar]Requisitos
Para
L
tipo a ser Lockable
, debe cumplir la condición anterior, así como la siguiente:Original:
For type
L
to be Lockable
, it must meet the above condition as well as the following: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.
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 |