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

Pirama Arumuga Nainar via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 3 11:16:47 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL277618: Disable KMP_CANCEL_THREADS on Android (authored by pirama).

Changed prior to commit:
  https://reviews.llvm.org/D23029?vs=66361&id=66682#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23029

Files:
  openmp/trunk/runtime/src/kmp.h

Index: openmp/trunk/runtime/src/kmp.h
===================================================================
--- openmp/trunk/runtime/src/kmp.h
+++ openmp/trunk/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.66682.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160803/db4c8414/attachment-0001.bin>


More information about the Openmp-commits mailing list