mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
Add Clang thread safety annotations for variables guarded by cs_warnings
This commit is contained in:
parent
cf13ad23d4
commit
8499f15e67
1 changed files with 3 additions and 3 deletions
|
@ -9,9 +9,9 @@
|
||||||
#include <warnings.h>
|
#include <warnings.h>
|
||||||
|
|
||||||
CCriticalSection cs_warnings;
|
CCriticalSection cs_warnings;
|
||||||
std::string strMiscWarning;
|
std::string strMiscWarning GUARDED_BY(cs_warnings);
|
||||||
bool fLargeWorkForkFound = false;
|
bool fLargeWorkForkFound GUARDED_BY(cs_warnings) = false;
|
||||||
bool fLargeWorkInvalidChainFound = false;
|
bool fLargeWorkInvalidChainFound GUARDED_BY(cs_warnings) = false;
|
||||||
|
|
||||||
void SetMiscWarning(const std::string& strWarning)
|
void SetMiscWarning(const std::string& strWarning)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue