std::shared_lock<Mutex>::operator bool
De cppreference.com
< cpp | thread | shared lock
explicit operator bool() const noexcept; |
(desde C++14) | |
Comprueba si *this posee un mutex bloqueado o no. Efectivamente llama a owns_lock().
[editar] Parámetros
(Ninguno)
[editar] Valor de retorno
true si *this tiene un mutex asociado y ha adquirido su propiedad; de lo contrario, false.
[editar] Véase también
Comprueba si el cerrojo posee su mutex asociado (función miembro pública) |