From 04d89bc9216553adcd0df87985a7665882924093 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期五, 22 八月 2025 17:56:10 +0800
Subject: [PATCH] 1. 优化Notch计算周长,使用比例的形式计算

---
 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