From: @youui
Reviewed-by: @ljl0711,@liujunzhu
Signed-off-by: @liujunzhu
pull/1398/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 7ed03d0d0e

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