Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/engine/Debug.cpp

Issue 10790071: Send debug output to a file (Closed)
Patch Set: Created June 4, 2013, 9:33 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/engine/Debug.cpp
===================================================================
--- a/src/engine/Debug.cpp
+++ b/src/engine/Debug.cpp
@@ -33,22 +33,26 @@ namespace
}
~Lock()
{
LeaveCriticalSection(section);
}
private:
LPCRITICAL_SECTION section;
+ Lock(const Lock&);
+ Lock& operator=(const Lock&);
};
private:
CRITICAL_SECTION section;
+ CriticalSection(const CriticalSection&);
+ CriticalSection& operator=(const CriticalSection&);
};
- static CriticalSection debugLock;
+ CriticalSection debugLock;
}
void Debug(const std::string& text)
{
SYSTEMTIME st;
::GetSystemTime(&st);
char timeBuf[14];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld