std::shared_lock<Mutex>:: owns_lock
From cppreference.net
<
cpp
|
thread
|
shared lock
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::shared_lock
| Member functions | ||||
| Shared locking | ||||
| Modifiers | ||||
| Observers | ||||
|
shared_lock::owns_lock
|
||||
| Non-member functions | ||||
|
bool
owns_lock
(
)
const
noexcept
;
|
(depuis C++14) | |
Vérifie si * this possède un mutex verrouillé ou non.
Paramètres
(aucun)
Valeur de retour
true si * this a un mutex associé et en a acquis la propriété partagée, false sinon.
Voir aussi
|
teste si le verrou possède son mutex associé
(fonction membre publique) |