From 39908afd9bb85db893e77255117a81e1aed3f493 Mon Sep 17 00:00:00 2001 From: Kris Rowe Date: Mon, 5 Feb 2024 14:24:34 -0600 Subject: [PATCH] Revert Linux related changes from #739. --- src/occa/internal/utils/sys.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/occa/internal/utils/sys.cpp b/src/occa/internal/utils/sys.cpp index 1afefcacf..1701ecb69 100644 --- a/src/occa/internal/utils/sys.cpp +++ b/src/occa/internal/utils/sys.cpp @@ -407,8 +407,7 @@ namespace occa { pthread_threadid_np(nullptr, &tid64); pid_t tid = (pid_t)tid64; #else - uint64_t tid; - tid = pthread_mach_thread_np(pthread_self()); + pid_t tid = syscall(SYS_gettid); #endif return tid; #else