pull/1397/head
yangwei 4 years ago
parent e4f2a322a5
commit 61dc2e9353

@ -42,9 +42,9 @@ class GE_FUNC_VISIBILITY GeLog {
public: public:
static uint64_t GetTid() { static uint64_t GetTid() {
#ifdef __GNUC__ #ifdef __GNUC__
thread_local static uint64_t tid = static_cast<uint64_t>(syscall(__NR_gettid)); uint64_t tid = static_cast<uint64_t>(syscall(__NR_gettid));
#else #else
thread_local static uint64_t tid = static_cast<uint64_t>(GetCurrentThreadId()); uint64_t tid = static_cast<uint64_t>(GetCurrentThreadId());
#endif #endif
return tid; return tid;
} }

Loading…
Cancel
Save