std::unique_lock::operator bool
Da cppreference.com.
< cpp | thread | unique lock
![]() |
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. |
explicit operator bool() const; |
(dal C++11) | |
Verifica se *this possiede un mutex bloccato o meno. Chiama efficacemente
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.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica] Parametri
(Nessuno)
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.
[modifica] Valore di ritorno
true se *this ha un mutex associato e ha acquisito la proprietà, false altrimenti.
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.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Eccezioni
[modifica] Vedi anche
verifica se il blocco possiede il suo mutex associato Original: tests whether the lock owns its associated mutex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |