X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Futil.cpp;fp=src%2Futil.cpp;h=6314b53627c0fe27d6e8cd54f8c084da676f290f;hb=3703150d56ff6ee557ab330e55637c9c23835902;hp=be6267688c3f0b881f2c9ba1ae7c9203a58b4503;hpb=1bc2f0a37b68aa99e90437105a48c47046b6c0d0;p=novacoin.git diff --git a/src/util.cpp b/src/util.cpp index be62676..6314b53 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -22,6 +22,7 @@ namespace boost { #include #include #include +#include using namespace std; using namespace boost; @@ -193,6 +194,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)