diff --git a/libdevcore/Log.cpp b/libdevcore/Log.cpp index d3e00d683..1c7a34932 100644 --- a/libdevcore/Log.cpp +++ b/libdevcore/Log.cpp @@ -23,6 +23,7 @@ #include #include +#include "Guards.h" using namespace std; using namespace dev; @@ -39,6 +40,9 @@ extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char* l void dev::simpleDebugOut(std::string const& _s, char const*) { + static Mutex s_lock; + Guard l(s_lock); + cout << _s << endl << flush; // helpful to use OutputDebugString on windows