From df115f866aa39f312970dcfe9b306e15111beb0b Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 13 五月 2025 09:48:22 +0800
Subject: [PATCH] no message
---
SourceCode/Bond/Servo/PageLog.cpp | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/PageLog.cpp b/SourceCode/Bond/Servo/PageLog.cpp
index 50b9bfa..7af3e51 100644
--- a/SourceCode/Bond/Servo/PageLog.cpp
+++ b/SourceCode/Bond/Servo/PageLog.cpp
@@ -159,6 +159,28 @@
m_logEdit.SetLimitText(-1);
+<<<<<<< HEAD:SourceCode/Bond/Servo/LogDlg.cpp
+ std::thread([this]() {
+ constexpr int nMaxWaitMs = 3000; // 最多等待 3 秒
+ constexpr int nStepMs = 1; // 每次等待 1ms
+ int nElapsed = 0;
+
+ while (nElapsed < nMaxWaitMs) {
+ if (theApp.m_model.getObservable() != nullptr) {
+ InitRxWindow();
+ return;
+ }
+ std::this_thread::sleep_for(std::chrono::milliseconds(nStepMs));
+ nElapsed += nStepMs;
+ }
+
+ // 超时也可以发消息记录下日志
+ TRACE(_T("InitRxWindow 超时,未执行\n"));
+ }).detach();
+
+
+=======
+>>>>>>> clh:SourceCode/Bond/Servo/PageLog.cpp
Resize();
--
Gitblit v1.9.3