aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2012-06-14 18:07:11 +0000
committerLuke Dashjr <[email protected]>2012-06-14 18:07:11 +0000
commit3703150d56ff6ee557ab330e55637c9c23835902 (patch)
treeb3f13dd5416c38c508ee785dd3e543e381cc03a2 /src/util.cpp
parentFix build of testcases after commit 0f10b21719e1b0d9683a142f0a7105e65f095694 (diff)
parentUpdate wiki changelog at doc/release-process.txt (diff)
downloaddiscoin-3703150d56ff6ee557ab330e55637c9c23835902.tar.xz
discoin-3703150d56ff6ee557ab330e55637c9c23835902.zip
Merge branch '0.4.x' into 0.5.x
Conflicts: doc/release-process.txt src/serialize.h
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index be6267688..6314b5362 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -22,6 +22,7 @@ namespace boost {
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
#include <boost/foreach.hpp>
+#include <boost/thread.hpp>
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)