[PATCH] D11781: Refactored pthread usage in libcxx

David Chisnall via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 8 12:52:26 PDT 2015


theraven added a comment.

This version looks much better (well, the previous one is cleaner, but this one looks like it shouldn't break the ABI - did you test this?  It looks like it should work, but I've not actually tried it).


================
Comment at: include/__config:742
@@ +741,3 @@
+#ifndef _LIBCPP_HAS_NO_THREADS
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) || defined(__APPLE__)
+#  define _LIBCPP_THREAD_API _LIBCPP_PTHREAD
----------------
#ifdef unix will catch most of these (for some reason, not OS X, even though it's the only one that actually is certified as UNIX...)


Repository:
  rL LLVM

http://reviews.llvm.org/D11781





More information about the cfe-commits mailing list