diff --git a/inc/framework/common/debug/ge_log.h b/inc/framework/common/debug/ge_log.h index 45db7e93..754712f3 100644 --- a/inc/framework/common/debug/ge_log.h +++ b/inc/framework/common/debug/ge_log.h @@ -42,9 +42,9 @@ class GE_FUNC_VISIBILITY GeLog { public: static uint64_t GetTid() { #ifdef __GNUC__ - thread_local static uint64_t tid = static_cast(syscall(__NR_gettid)); + uint64_t tid = static_cast(syscall(__NR_gettid)); #else - thread_local static uint64_t tid = static_cast(GetCurrentThreadId()); + uint64_t tid = static_cast(GetCurrentThreadId()); #endif return tid; }