clang-tools
8.0.0
|
#include "Context.h"
#include "Function.h"
#include "llvm/ADT/Twine.h"
#include <cassert>
#include <condition_variable>
#include <memory>
#include <mutex>
#include <thread>
#include <vector>
Go to the source code of this file.
Classes | |
class | clang::clangd::Notification |
A threadsafe flag that is initially clear. More... | |
class | clang::clangd::Semaphore |
Limits the number of threads that can acquire the lock at the same time. More... | |
class | clang::clangd::Deadline |
A point in time we can wait for. More... | |
class | clang::clangd::AsyncTaskRunner |
Runs tasks on separate (detached) threads and wait for all tasks to finish. More... | |
Namespaces | |
clang | |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
clang::clangd | |
Enumerations | |
enum | clang::clangd::ThreadPriority { clang::clangd::ThreadPriority::Low = 0, clang::clangd::ThreadPriority::Normal = 1 } |
Functions | |
Deadline | clang::clangd::timeoutSeconds (llvm::Optional< double > Seconds) |
Makes a deadline from a timeout in seconds. None means wait forever. More... | |
void | clang::clangd::wait (std::unique_lock< std::mutex > &Lock, std::condition_variable &CV, Deadline D) |
Wait once on CV for the specified duration. More... | |
template<typename Func > | |
LLVM_NODISCARD bool | clang::clangd::wait (std::unique_lock< std::mutex > &Lock, std::condition_variable &CV, Deadline D, Func F) |
Waits on a condition variable until F() is true or D expires. More... | |
void | clang::clangd::setCurrentThreadPriority (ThreadPriority Priority) |
void | clang::clangd::preventThreadStarvationInTests () |