31 Reporter = Reporter->Next;
36 :
Callback(std::move(ThreadLocalCallback)), Next(nullptr) {
41 std::atomic_signal_fence(std::memory_order_seq_cst);
49 std::atomic_signal_fence(std::memory_order_seq_cst);
Allows setting per-thread abort/kill signal callbacks, to print additional information about the cras...
static void runCrashHandlers()
Calls all currently-active ThreadCrashReporters for the current thread.
ThreadCrashReporter(SignalCallback ThreadLocalCallback)
Registers the callback as the first one in thread-local callback chain.
llvm::unique_function< void(void)> SignalCallback
~ThreadCrashReporter()
Resets the current thread's callback to nullptr.
llvm::unique_function< void(llvm::Expected< T >)> Callback
A Callback<T> is a void function that accepts Expected<T>.
static thread_local ThreadCrashReporter * CurrentReporter
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//