aboutsummaryrefslogtreecommitdiff
path: root/clangd/Threading.h
diff options
context:
space:
mode:
Diffstat (limited to 'clangd/Threading.h')
-rw-r--r--clangd/Threading.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clangd/Threading.h b/clangd/Threading.h
index 3f5e5fc3..6dad841d 100644
--- a/clangd/Threading.h
+++ b/clangd/Threading.h
@@ -108,7 +108,7 @@ public:
void wait() const { (void)wait(Deadline::infinity()); }
LLVM_NODISCARD bool wait(Deadline D) const;
// The name is used for tracing and debugging (e.g. to name a spawned thread).
- void runAsync(llvm::Twine Name, UniqueFunction<void()> Action);
+ void runAsync(const llvm::Twine &Name, llvm::unique_function<void()> Action);
private:
mutable std::mutex Mutex;