#include "support/Context.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/ADT/Twine.h"
#include <atomic>
#include <cassert>
#include <condition_variable>
#include <future>
#include <memory>
#include <mutex>
#include <optional>
#include <thread>
#include <vector>
Go to the source code of this file.
|
namespace | clang |
| ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
|
|
namespace | clang::clangd |
| FIXME: Skip testing on windows temporarily due to the different escaping code mode.
|
|
|
Deadline | clang::clangd::timeoutSeconds (std::optional< double > Seconds) |
| Makes a deadline from a timeout in seconds. std::nullopt means wait forever.
|
|
void | clang::clangd::wait (std::unique_lock< std::mutex > &Lock, std::condition_variable &CV, Deadline D) |
| Wait once on CV for the specified duration.
|
|
template<typename Func > |
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.
|
|
template<typename T > |
std::future< T > | clang::clangd::runAsync (llvm::unique_function< T()> Action) |
| Runs Action asynchronously with a new std::thread.
|
|