mirror of https://github.com/bitcoin/bitcoin
Acquire an exclusive, advisory lock before sending output to debug.log and release it when we're done. This should avoid output from multiple threads being interspersed in the log file. We can't use CRITICAL_SECTION machinery for this because the debug log is written during startup and shutdown when that machinery is not available. (Thanks to Gavin for pointing out the CRITICAL_SECTION problems based on his earlier work in this area)pull/917/head
parent
660ff174f2
commit
fea25712ca
Loading…
Reference in new issue