std::unique_lock::operator bool - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(desde C++11) | |
Verifica se *this possui um mutex bloqueado ou não. Efetivamente chama owns_lock().
Original:
Checks whether *this owns a locked mutex or not. Effectively calls owns_lock().
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parâmetros
(Nenhum)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Valor de retorno
true se *this tem um mutex associado e adquiriu propriedade, false outra forma.
Original:
true if *this has an associated mutex and has acquired ownership of it, false otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Exceções
Veja também
testa se o bloqueio é dono da sua mutex associado Original: tests whether the lock owns its associated mutex The text has been machine-translated via Google Translate. (função pública membro) [edit] | |