This is a backport of Core PR11689
Fix missing locking in CTxMemPool::check(const CCoinsViewCache *pcoins)
- reading variable 'mapTx' requires holding mutex 'cs'
- reading variable 'mapNextTx' requires holding mutex 'cs'
- reading variable 'nCheckFrequency' requires holding mutex 'cs'
Fix missing locking in CTxMemPool::setSanityCheck(double dFrequency)
- writing variable 'nCheckFrequency' requires holding mutex 'cs'
Add Clang thread safety analysis annotations