[PATCH] D30526: [Support] Add functions to get and set thread name.

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 28 17:37:34 PDT 2018


thakis added inline comments.


================
Comment at: llvm/trunk/lib/Support/Unix/Threading.inc:98
+  return uint64_t(syscall(SYS_gettid));
+#elif defined(LLVM_ON_WIN32)
+  return uint64_t(::GetCurrentThreadId());
----------------
LLVM_ON_WIN32 will never be set in Unix/Threading.inc, will it? Is this branch ever used?


Repository:
  rL LLVM

https://reviews.llvm.org/D30526





More information about the llvm-commits mailing list