[PATCH] D46858: Signal handling should be signal-safe

JF Bastien via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 16 09:31:34 PDT 2018


jfb added inline comments.


================
Comment at: lib/Support/Signals.cpp:53
+  enum class Status { Empty, Initializing, Initialized, Executing };
+  std::atomic<Status> Flag;
+};
----------------
This is the update, avoids double-wide CAS by just using this flag.


Repository:
  rL LLVM

https://reviews.llvm.org/D46858





More information about the llvm-commits mailing list