[PATCH] D55497: Implement __kmp_gettid() for NetBSD

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 11 10:37:40 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rOMP348873: Implement __kmp_gettid() for NetBSD (authored by kamil, committed by ).

Repository:
  rOMP OpenMP

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55497/new/

https://reviews.llvm.org/D55497

Files:
  runtime/src/kmp_wrapper_getpid.h


Index: runtime/src/kmp_wrapper_getpid.h
===================================================================
--- runtime/src/kmp_wrapper_getpid.h
+++ runtime/src/kmp_wrapper_getpid.h
@@ -24,6 +24,9 @@
 #if KMP_OS_DARWIN
 // OS X
 #define __kmp_gettid() syscall(SYS_thread_selfid)
+#elif KMP_OS_NETBSD
+#include <lwp.h>
+#define __kmp_gettid() _lwp_self()
 #elif defined(SYS_gettid)
 // Hopefully other Unix systems define SYS_gettid syscall for getting os thread
 // id


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55497.177736.patch
Type: text/x-patch
Size: 469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181211/3dc4013f/attachment.bin>


More information about the llvm-commits mailing list