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

Unified Diff: src/engine/Debug.cpp

Issue 11012013: Hanging resolved (critical sections unlocking) (Closed)
Patch Set: Comments addressed Created June 25, 2013, 11:56 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 | src/plugin/PluginFilter.h » ('j') | 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
@@ -4,13 +4,16 @@
#include <Windows.h>
#include "../shared/Utils.h"
+#include "../shared/CriticalSection.h"
#include "Debug.h"
#ifdef _DEBUG
-CriticalSection debugLock;
-
+namespace
+{
+ CriticalSection debugLock;
+};
void Debug(const std::string& text)
{
SYSTEMTIME st;
« no previous file with comments | « no previous file | src/plugin/PluginFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld