aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-10-29 05:55:56 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-10-29 05:55:56 +0000
commitdc73b326f97f2ed7ec7b7e8485ebc9eb46e05ddb (patch)
tree28007352d7516f8e9f65c67f24546651df3a65a4 /net.h
parentdd519206a684c772a4a06ceecc87c665ad09d8be (diff)
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
Diffstat (limited to 'net.h')
-rw-r--r--net.h6
1 files changed, 3 insertions, 3 deletions
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()