diff options
| author | Akio Nakamura <[email protected]> | 2019-01-23 10:57:16 +0900 |
|---|---|---|
| committer | Akio Nakamura <[email protected]> | 2019-01-25 13:21:59 +0900 |
| commit | b09dab0f2de37be3c96f5087ee7bd61d7262aa76 (patch) | |
| tree | 4e72f703b4527288b2ae6ec8707c0a24f4346650 /src/httpserver.cpp | |
| parent | Merge #15208: Qt: remove macOS launch-at-startup when compiled with > macOS 1... (diff) | |
| download | discoin-b09dab0f2de37be3c96f5087ee7bd61d7262aa76.tar.xz discoin-b09dab0f2de37be3c96f5087ee7bd61d7262aa76.zip | |
Prevent mutex lock fail even if --enable-debug
This PR intends to resolve #15227.
"configure --debug-enabled" 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.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions