[#GlobalMutex] = GlobalMutex :mrdocs: Different type to mark Mutex at global scope == Synopsis Declared in `<sync.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class GlobalMutex : public xref:Mutex.adoc[Mutex] ---- == Description Thread safety analysis can't handle negative assertions about mutexes with global scope well, so mark them with a separate type, and eventually move all the mutexes into classes so they are not globally visible. See: https://github.com/bitcoin/bitcoin/pull/20272#issuecomment‐720755781 == Base Classes [cols="1,4"] |=== | Name| Description | `xref:Mutex.adoc[Mutex]` | Wrapped mutex: supports waiting but not recursive locking |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#