Browse Source

fix import

tags/v1.3.0
yangwei 3 years ago
parent
commit
61dc2e9353
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      inc/framework/common/debug/ge_log.h

+ 2
- 2
inc/framework/common/debug/ge_log.h View File

@@ -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