- make client use less CPU for network games

This commit is contained in:
Mark Vejvoda
2013-03-13 21:32:48 +00:00
parent 3661d62c03
commit 16d25210e4
6 changed files with 92 additions and 25 deletions

View File

@@ -1077,13 +1077,12 @@ bool Socket::hasDataToRead(PLATFORM_SOCKET socket)
return bResult;
}
bool Socket::hasDataToReadWithWait(int waitMilliseconds)
{
bool Socket::hasDataToReadWithWait(int waitMilliseconds) {
MutexSafeWrapper safeMutex(dataSynchAccessorRead,CODE_AT_LINE);
return Socket::hasDataToReadWithWait(sock,waitMilliseconds) ;
}
bool Socket::hasDataToReadWithWait(PLATFORM_SOCKET socket,int waitMilliseconds)
{
bool Socket::hasDataToReadWithWait(PLATFORM_SOCKET socket,int waitMilliseconds) {
bool bResult = false;
Chrono chono;