提交 fb6a6321 编写于 作者: M Megvii Engine Team

fix(core): do not use STL thread_local on Android

GitOrigin-RevId: 16a631fd77c5bb051f1327166f4c6b2aef9866a2
上级 e77cea14
......@@ -18,6 +18,12 @@
# endif
#endif
#if defined(__ANDROID__)
#pragma message("force disable USE_STL_THREAD_LOCAL for thread_local mem leak at dlopen/dlclose")
#undef USE_STL_THREAD_LOCAL
#define USE_STL_THREAD_LOCAL 0
#endif
#if USE_STL_THREAD_LOCAL
#define MGB_THREAD_LOCAL_PTR(T) thread_local T*
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册