mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 14:41:23 +02:00
- attempt to see if this helps network performance
This commit is contained in:
@@ -152,8 +152,8 @@ public:
|
||||
static bool hasDataToRead(PLATFORM_SOCKET socket);
|
||||
bool hasDataToRead();
|
||||
|
||||
static bool hasDataToReadWithWait(PLATFORM_SOCKET socket,int waitMilliseconds);
|
||||
bool hasDataToReadWithWait(int waitMilliseconds);
|
||||
static bool hasDataToReadWithWait(PLATFORM_SOCKET socket,int waitMicroseconds);
|
||||
bool hasDataToReadWithWait(int waitMicroseconds);
|
||||
|
||||
virtual void disconnectSocket();
|
||||
|
||||
|
@@ -1077,12 +1077,12 @@ bool Socket::hasDataToRead(PLATFORM_SOCKET socket)
|
||||
return bResult;
|
||||
}
|
||||
|
||||
bool Socket::hasDataToReadWithWait(int waitMilliseconds) {
|
||||
bool Socket::hasDataToReadWithWait(int waitMicroseconds) {
|
||||
MutexSafeWrapper safeMutex(dataSynchAccessorRead,CODE_AT_LINE);
|
||||
return Socket::hasDataToReadWithWait(sock,waitMilliseconds) ;
|
||||
return Socket::hasDataToReadWithWait(sock,waitMicroseconds) ;
|
||||
}
|
||||
|
||||
bool Socket::hasDataToReadWithWait(PLATFORM_SOCKET socket,int waitMilliseconds) {
|
||||
bool Socket::hasDataToReadWithWait(PLATFORM_SOCKET socket,int waitMicroseconds) {
|
||||
bool bResult = false;
|
||||
|
||||
Chrono chono;
|
||||
@@ -1098,7 +1098,7 @@ bool Socket::hasDataToReadWithWait(PLATFORM_SOCKET socket,int waitMilliseconds)
|
||||
|
||||
/* Wait up to 0 seconds. */
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 1000 * waitMilliseconds;
|
||||
tv.tv_usec = waitMicroseconds;
|
||||
|
||||
int retval = 0;
|
||||
{
|
||||
|
Reference in New Issue
Block a user