X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=dca41979812b9ab50ac39101c46403910dee6a1d;hp=ef8f755f547c16bd53eb13400de298cc26c17f15;hb=5e322a72f94e3c759bb37cec37d8c066766b6072;hpb=8f0c0c16d384510b07aec3ca2dde2391429f1b0b diff --git a/src/util.cpp b/src/util.cpp index ef8f755..dca4197 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -26,6 +26,7 @@ namespace boost { #include #include #include +#include #include #include @@ -209,6 +210,8 @@ inline int OutputDebugStringF(const char* pszFormat, ...) if (fileout) { static bool fStartedNewLine = true; + static boost::mutex mutexDebugLog; + boost::mutex::scoped_lock scoped_lock(mutexDebugLog); // Debug print useful for profiling if (fLogTimestamps && fStartedNewLine)