From 1e1fbe300ba2b22246c6743147087d10cf6c9798 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期二, 15 七月 2025 17:25:05 +0800
Subject: [PATCH] 修复:InterfaceManager.cpp保存图片添加锁

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

diff --git a/EdgeInspector_App/InterfaceManager.h b/EdgeInspector_App/InterfaceManager.h
index 3087daa..85c8bab 100644
--- a/EdgeInspector_App/InterfaceManager.h
+++ b/EdgeInspector_App/InterfaceManager.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