diff options
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()
|