[libc-commits] [libc] [libc] implement cached process/thread identity (PR #95965)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Thu Jun 20 13:58:26 PDT 2024
================
@@ -517,4 +517,6 @@ void thread_exit(ThreadReturnValue retval, ThreadStyle style) {
__builtin_unreachable();
}
+pid_t Thread::get_uncached_tid() { return syscall_impl<pid_t>(SYS_gettid); }
----------------
nickdesaulniers wrote:
Can we clean up the number of places that we call `SYS_gettid` directly? Looks like `gettid_inline` does this, too.
https://github.com/llvm/llvm-project/pull/95965
More information about the libc-commits
mailing list