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
commitfc0e97a70ee295da44096fa590a1f7674b936590 (patch)
tree28007352d7516f8e9f65c67f24546651df3a65a4 /net.h
parentcc0b4c3b62367a2aebe5fc1f4d0ed4b97e9c2ac9 (diff)
downloadbitcoin-fc0e97a70ee295da44096fa590a1f7674b936590.tar.xz
CCriticalSection using wxWidgets instead of Windows OS calls
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()