From fcdb73055222a5cfd7e76030c714af79f7aa10bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=91=E5=B1=91=E5=B1=91?= Date: Sat, 11 Apr 2026 12:17:18 +0800 Subject: [PATCH] p12 fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 屑屑屑 --- Source/astcenc_internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/astcenc_internal.h b/Source/astcenc_internal.h index 93f54d9..2cf2320 100644 --- a/Source/astcenc_internal.h +++ b/Source/astcenc_internal.h @@ -30,6 +30,7 @@ #endif #include #include +#include #ifdef ASTC_CUSTOMIZED_ENABLE #include @@ -2306,6 +2307,7 @@ public: CustomizedBlockMode customizedBlockModeFunc_; bool LoadSutCustomizedSo() { + std::lock_guard lock(astcCustomizedSoMutex_); if (!astcCustomizedSoOpened_) { #if defined(_WIN32) && !defined(__CYGWIN__) @@ -2412,6 +2414,7 @@ private: #else void *astcCustomizedSoHandle_; #endif + std::mutex astcCustomizedSoMutex_; }; extern AstcCustomizedSoManager g_astcCustomizedSoManager; #endif