[libcxx-commits] [PATCH] D64378: [libcxx] Use C11 thread API on Fuchsia

Petr Hosek via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 8 16:12:24 PDT 2019


phosek created this revision.
phosek added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, jfb, ldionne, christof.

On Fuchsia, pthread API is emulated on top of C11 thread API. Using C11
thread API directly is more efficient.

While this implementation is only used by Fuchsia at the moment, it's
not Fuchsia specific (except for the MTX_INIT and CND_INIT macros which
are Fuchsia extensions), and could be used by other platforms that use
C11 threads rather than pthreads in the future.


Repository:
  rCXX libc++

https://reviews.llvm.org/D64378

Files:
  libcxx/include/__config
  libcxx/include/__threading_support

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64378.208533.patch
Type: text/x-patch
Size: 7068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190708/1f416c85/attachment.bin>


More information about the libcxx-commits mailing list