attempt to see how this affects network games for tomreyn

This commit is contained in:
Mark Vejvoda 2013-11-15 19:21:14 +00:00
parent ea88a4c990
commit 98bc4b190e
2 changed files with 3 additions and 1 deletions

View File

@ -291,7 +291,7 @@ void ConnectionSlotThread::execute() {
//bool socketHasReadData = socket->hasDataToRead();;
// Avoid mutex locking
//bool socketHasReadData = Socket::hasDataToRead(socket->getSocketId());
bool socketHasReadData = Socket::hasDataToReadWithWait(socket->getSocketId(),100000);
bool socketHasReadData = Socket::hasDataToReadWithWait(socket->getSocketId(),10000);
ConnectionSlotEvent eventCopy;
eventCopy.eventType = eReceiveSocketData;

View File

@ -915,6 +915,7 @@ void ServerInterface::signalClientsToRecieveData(std::map<PLATFORM_SOCKET,bool>
}
}
}
sleep(0);
}
}
@ -1019,6 +1020,7 @@ void ServerInterface::checkForCompletedClients(std::map<int,bool> & mapSlotSigna
//printf("===> END slot %d - About to checkForCompletedClients\n",i);
}
sleep(0);
}
}
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);