mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 22:51:24 +02:00
- make client use less CPU for network games
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user