[libcxx-commits] [PATCH] D150284: [libc++][PSTL] Add a simple std::thread backend

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 16 12:07:58 PDT 2023


EricWF requested changes to this revision.
EricWF added a comment.
This revision now requires changes to proceed.

The `__threading` header, which defines a stable API that libc++ uses to implement threading primitives. This has been used by a bunch of vendors to shim in the different implementations for their platforms.
I believe we'll want to do the same thing here.

Do we know what the full API will look like yet?



================
Comment at: libcxx/include/__algorithm/pstl_backends/cpu_backends/thread.h:26
+
+namespace __par_backend {
+inline namespace __thread_cpu_backend {
----------------
Small nit. These namespaces add a bunch of size to the mangled names. Do we need to be this descriptive?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150284/new/

https://reviews.llvm.org/D150284



More information about the libcxx-commits mailing list