43 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SHUTDOWN_H 44 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SHUTDOWN_H 67 template <
typename Fun,
typename Ret = decltype(std::declval<Fun>()())>
69 const typename std::enable_if<true, Ret>::type &Fail,
77 }
while (Res == Fail && errno == EINTR);
void requestShutdown()
Sets a flag to indicate that clangd was sent a shutdown signal, and the transport loop should exit at...
void abortAfterTimeout(std::chrono::seconds Timeout)
Causes this process to crash if still running after Timeout.
bool shutdownRequested()
Checks whether requestShutdown() was called.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Ret retryAfterSignalUnlessShutdown(const typename std::enable_if< true, Ret >::type &Fail, const Fun &F)
Retry an operation if it gets interrupted by a signal.