aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorAkio Nakamura <nakamura@dgtechnologies.co.jp>2019-01-23 10:57:16 +0900
committerAkio Nakamura <nakamura@dgtechnologies.co.jp>2019-01-25 13:21:59 +0900
commitb09dab0f2de37be3c96f5087ee7bd61d7262aa76 (patch)
tree4e72f703b4527288b2ae6ec8707c0a24f4346650 /src/support
parent94167e2b5b7b6cb3cb1465ee67dd50676c5c8a14 (diff)
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/support')
0 files changed, 0 insertions, 0 deletions