diff options
| author | MarcoFalke <[email protected]> | 2019-01-25 01:11:17 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-01-25 01:11:24 -0500 |
| commit | d14ef5721ffcf07321704dc21f1ab9df4952a44d (patch) | |
| tree | 58dba5c266d908d3c7155988d281c24f13ad0071 /src/httpserver.cpp | |
| parent | Merge #15193: Default -whitelistforcerelay to off (diff) | |
| parent | Prevent mutex lock fail even if --enable-debug (diff) | |
| download | discoin-d14ef5721ffcf07321704dc21f1ab9df4952a44d.tar.xz discoin-d14ef5721ffcf07321704dc21f1ab9df4952a44d.zip | |
Merge #15233: Prevent mutex lock fail even if --enable-debug
b09dab0f2d Prevent mutex lock fail even if --enable-debug (Akio Nakamura)
Pull request description:
This PR intends to resolve #15227.
```configure --enable-debug``` enables ```#ifdef DEBUG_LOCKORDER```.
Then ```lockdata``` (in sync.cpp) will be initialized same as other static objects.
But unfortunately, ```lockdata.push_lock()``` was called before its initialization (via initializing ```signatureCache``` which is declared in ```script/sigcache.cpp```) on macOS.
This PR apply the "Construct On First Use Idiom" to ```lockdata``` to prevent it.
edited --- fix typo.
Tree-SHA512: 59df99ef78a335b1b7ebed7207d4719ea4412900eea38739f6e8eaaba1f594e1950044851659ce83f4f69813fc96978244bd176676e1aa2277c813ede832e6fb
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions