V20260105-2.3.4
进一步优化rpcFIns的boost模块性能(测试)。 对赢合取图丢弃的逻辑进行了更改。
This commit is contained in:
@@ -32,20 +32,19 @@ triggerManager::triggerManager(ServiceManager* _serviceManager, bSignalHub* brid
|
||||
void triggerManager::run(){
|
||||
if(connectHost() == false)
|
||||
return;
|
||||
QThread::msleep(1000);
|
||||
QThread::msleep(500);
|
||||
QElapsedTimer heartTimer, loopCounterCollectTimer,loopIntervalTimer;
|
||||
int loopCounter = 0,maxIntervalLog = 0,interval = 0;
|
||||
loopIntervalTimer.start();
|
||||
while (runFlag){
|
||||
reciveCommond();
|
||||
//心跳
|
||||
if (heartTimer.elapsed()> heartBeatIntervalMS) {
|
||||
if (heartTimer.elapsed()> heartBeatIntervalMS) {//心跳
|
||||
sendFinsMsg(heartBeatCmds[heartBeatCmdCnt++]);
|
||||
if(heartBeatCmdCnt >= heartBeatCmds.size())
|
||||
heartBeatCmdCnt = 0;
|
||||
heartTimer.start();
|
||||
}
|
||||
if (loopCounterCollectTimer.elapsed() > 3000) {
|
||||
if (loopCounterCollectTimer.elapsed() > 3000) {//发送性能数据
|
||||
emit bridge->sendTriggerManagerLoopData(loopCounter / 3, maxIntervalLog);
|
||||
maxIntervalLog = 0;
|
||||
loopCounter = 0;
|
||||
|
||||
Reference in New Issue
Block a user