From 1dbe46cd9d0f181d08d5a69f72d8548628a13b9d Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期三, 16 七月 2025 17:13:50 +0800
Subject: [PATCH] 优化:显示在流程中解锁,并且把文件字符集统一替换成UTF-8(BOM)

---
 EdgeInspector_App/InterfaceManager.h |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/EdgeInspector_App/InterfaceManager.h b/EdgeInspector_App/InterfaceManager.h
index 3087daa..275f6a1 100644
--- a/EdgeInspector_App/InterfaceManager.h
+++ b/EdgeInspector_App/InterfaceManager.h
@@ -1,4 +1,4 @@
-#pragma once
+锘�#pragma once
 
 #include "Global_Define.h"
 #include "EdgeInspector_AppView.h"
@@ -123,6 +123,11 @@
 
 	long long GetCurrentTimestamp();
 
+private:
+	CRITICAL_SECTION m_criticalSection;
+	inline void Lock() { ::InitializeCriticalSection(&m_criticalSection); }
+	inline void Unlock() { ::DeleteCriticalSection(&m_criticalSection); }
+
 #if USE_WEBSOCKET
 protected:
 	void CreateWebSocketClients(WebSocketClientPool** wsClients, CString cstrURI, int nThreadCount);

--
Gitblit v1.9.3