From dc73b326f97f2ed7ec7b7e8485ebc9eb46e05ddb Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Thu, 29 Oct 2009 05:55:56 +0000 Subject: CCriticalSection using wxWidgets instead of Windows OS calls git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@19 1a98c847-1fd6-4fd8-948a-caf3550aa51b --- net.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net.h') diff --git a/net.h b/net.h index a0b2929daa..5995ac3343 100644 --- a/net.h +++ b/net.h @@ -604,7 +604,7 @@ public: void BeginMessage(const char* pszCommand) { - EnterCriticalSection(&cs_vSend); + cs_vSend.Enter(); if (nPushPos != -1) AbortMessage(); nPushPos = vSend.size(); @@ -618,7 +618,7 @@ public: return; vSend.resize(nPushPos); nPushPos = -1; - LeaveCriticalSection(&cs_vSend); + cs_vSend.Leave(); printf("(aborted)\n"); } @@ -643,7 +643,7 @@ public: printf("\n"); nPushPos = -1; - LeaveCriticalSection(&cs_vSend); + cs_vSend.Leave(); } void EndMessageAbortIfEmpty() -- cgit v1.2.3