Compile with DEBUG_LOCKORDER to detect inconsistent lock orderings that can cause deadlocks

This commit is contained in:
Gavin Andresen
2011-03-29 11:32:16 -04:00
parent c7286112ef
commit 865ed8a1e5
3 changed files with 149 additions and 27 deletions

View File

@@ -677,7 +677,7 @@ public:
void BeginMessage(const char* pszCommand)
{
cs_vSend.Enter();
cs_vSend.Enter("cs_vSend", __FILE__, __LINE__);
if (nHeaderStart != -1)
AbortMessage();
nHeaderStart = vSend.size();