[libcxx-commits] [PATCH] D115369: [NFC][libcxxabi] Added convinence classes to cxa_guard

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 13 08:14:21 PST 2021


ldionne requested changes to this revision.
ldionne added inline comments.
This revision now requires changes to proceed.


================
Comment at: libcxxabi/src/cxa_guard_impl.h:570
+//===----------------------------------------------------------------------===//
+//                          Convinence Classes
+//===----------------------------------------------------------------------===//
----------------



================
Comment at: libcxxabi/src/cxa_guard_impl.h:573-597
+/// NoThreadsGuard - Manages initialization without performing any inter-thread
+/// synchronization.
+struct NoThreadsGuard : GuardObject<InitByteNoThreads> {
+  using BaseT = typename NoThreadsGuard::GuardObject;
+  using BaseT::BaseT;
+};
+
----------------
Any reason for not doing this instead?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115369



More information about the libcxx-commits mailing list