mirror of
https://github.com/openharmony/third_party_astc-encoder.git
synced 2026-07-01 22:24:14 -04:00
@@ -30,6 +30,7 @@
|
||||
#endif
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
#include <mutex>
|
||||
|
||||
#ifdef ASTC_CUSTOMIZED_ENABLE
|
||||
#include <unistd.h>
|
||||
@@ -2306,6 +2307,7 @@ public:
|
||||
CustomizedBlockMode customizedBlockModeFunc_;
|
||||
bool LoadSutCustomizedSo()
|
||||
{
|
||||
std::lock_guard<std::mutex> 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
|
||||
|
||||
Reference in New Issue
Block a user