[Openmp-commits] [PATCH] D59735: Fix gettid warnings on FreeBSD
Dimitry Andric via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 25 11:36:31 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rOMP356934: Fix gettid warnings on FreeBSD (authored by dim, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D59735?vs=191995&id=192169#toc
Repository:
rOMP OpenMP
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59735/new/
https://reviews.llvm.org/D59735
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
@@ -23,6 +23,9 @@
#if KMP_OS_DARWIN
// OS X
#define __kmp_gettid() syscall(SYS_thread_selfid)
+#elif KMP_OS_FREEBSD
+#include <pthread_np.h>
+#define __kmp_gettid() pthread_getthreadid_np()
#elif KMP_OS_NETBSD
#include <lwp.h>
#define __kmp_gettid() _lwp_self()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59735.192169.patch
Type: text/x-patch
Size: 450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190325/66389d5c/attachment.bin>
More information about the Openmp-commits
mailing list