attempt to see how this affects network games for tomreyn
This commit is contained in:
parent
ea88a4c990
commit
98bc4b190e
|
@ -291,7 +291,7 @@ void ConnectionSlotThread::execute() {
|
||||||
//bool socketHasReadData = socket->hasDataToRead();;
|
//bool socketHasReadData = socket->hasDataToRead();;
|
||||||
// Avoid mutex locking
|
// Avoid mutex locking
|
||||||
//bool socketHasReadData = Socket::hasDataToRead(socket->getSocketId());
|
//bool socketHasReadData = Socket::hasDataToRead(socket->getSocketId());
|
||||||
bool socketHasReadData = Socket::hasDataToReadWithWait(socket->getSocketId(),100000);
|
bool socketHasReadData = Socket::hasDataToReadWithWait(socket->getSocketId(),10000);
|
||||||
|
|
||||||
ConnectionSlotEvent eventCopy;
|
ConnectionSlotEvent eventCopy;
|
||||||
eventCopy.eventType = eReceiveSocketData;
|
eventCopy.eventType = eReceiveSocketData;
|
||||||
|
|
|
@ -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);
|
//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__);
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user