Browse Source

Deinterleave logging.

cl-refactor
Gav Wood 10 years ago
parent
commit
6ee38d54fb
  1. 4
      libdevcore/Log.cpp

4
libdevcore/Log.cpp

@ -23,6 +23,7 @@
#include <string> #include <string>
#include <iostream> #include <iostream>
#include "Guards.h"
using namespace std; using namespace std;
using namespace dev; 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*) void dev::simpleDebugOut(std::string const& _s, char const*)
{ {
static Mutex s_lock;
Guard l(s_lock);
cout << _s << endl << flush; cout << _s << endl << flush;
// helpful to use OutputDebugString on windows // helpful to use OutputDebugString on windows

Loading…
Cancel
Save