[Openmp-commits] [PATCH] D23029: Disable KMP_CANCEL_THREADS on Android

Pirama Arumuga Nainar via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 1 13:01:08 PDT 2016


pirama created this revision.
pirama added subscribers: openmp-commits, srhines.
Herald added subscribers: danalbert, tberghammer.

Android does not have pthread_cancel.  Disable KMP_CANCEL_THREADS if
__ANDROID__ is defined.

https://reviews.llvm.org/D23029

Files:
  runtime/src/kmp.h

Index: runtime/src/kmp.h
===================================================================
--- runtime/src/kmp.h
+++ runtime/src/kmp.h
@@ -55,6 +55,12 @@
 #define KMP_CANCEL_THREADS
 #define KMP_THREAD_ATTR
 
+// Android does not have pthread_cancel.  Undefine KMP_CANCEL_THREADS if being
+// built on Android
+#if defined(__ANDROID__)
+#undef KMP_CANCEL_THREADS
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23029.66361.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160801/536c4751/attachment-0001.bin>


More information about the Openmp-commits mailing list