mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Remove global symbols: Avoid using the global namespace if possible
Rename CCriticalSection to RecursiveMutex (both are AnnotatedMixin<std::recursive_mutex>) ``` $ git grep -E '(typedef|using).*(CCriticalSection|RecursiveMutex)' src/sync.h:using RecursiveMutex = AnnotatedMixin<std::recursive_mutex>; src/sync.h:typedef AnnotatedMixin<std::recursive_mutex> CCriticalSection; ```
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
#include <util/system.h>
|
||||
#include <warnings.h>
|
||||
|
||||
CCriticalSection cs_warnings;
|
||||
std::string strMiscWarning GUARDED_BY(cs_warnings);
|
||||
bool fLargeWorkForkFound GUARDED_BY(cs_warnings) = false;
|
||||
bool fLargeWorkInvalidChainFound GUARDED_BY(cs_warnings) = false;
|
||||
static RecursiveMutex cs_warnings;
|
||||
static std::string strMiscWarning GUARDED_BY(cs_warnings);
|
||||
static bool fLargeWorkForkFound GUARDED_BY(cs_warnings) = false;
|
||||
static bool fLargeWorkInvalidChainFound GUARDED_BY(cs_warnings) = false;
|
||||
|
||||
void SetMiscWarning(const std::string& strWarning)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user