diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-29 05:55:56 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-29 05:55:56 +0000 |
commit | dc73b326f97f2ed7ec7b7e8485ebc9eb46e05ddb (patch) | |
tree | 28007352d7516f8e9f65c67f24546651df3a65a4 /net.h | |
parent | dd519206a684c772a4a06ceecc87c665ad09d8be (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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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()
|