fix recall

This commit is contained in:
lnk
2025-10-24 17:07:51 +08:00
parent 07ac84d612
commit f69a6d2105
5 changed files with 323 additions and 79 deletions

View File

@@ -94,6 +94,11 @@ public:
std::atomic<bool> m_bIsFrontThreadCancle{false};
std::atomic<bool> m_IsMQConsumerCancel{false};
std::atomic<bool> m_frontRunning{false};
std::atomic<bool> m_consumerRunning{false};
std::atomic<bool> m_producerRunning{false};
std::atomic<bool> m_timerRunning{false};
std::mutex m_threadCheckMutex;
std::atomic<bool> m_needRestartFrontThread{false};
std::atomic<bool> m_needRestartConsumerThread{false};
@@ -110,6 +115,12 @@ public:
void StartMQProducerThread();
void StartTimerThread();
// [ADD] 统一的停止接口(便于重启前先停干净)
void StopFrontThread();
void StopMQConsumerThread();
void StopMQProducerThread();
void StopTimerThread();
void FrontThread();
void mqconsumerThread();
void mqproducerThread();