llvm/clang-tools-extra/clangd/index/BackgroundQueue.cpp

//===-- BackgroundQueue.cpp - Task queue for background index -------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "index/Background.h"
#include "support/Logger.h"
#include <optional>

namespace clang {
namespace clangd {

static std::atomic<bool> PreventStarvation =;

void BackgroundQueue::preventThreadStarvationInTests() {}

void BackgroundQueue::work(std::function<void()> OnIdle) {}

void BackgroundQueue::stop() {}

// Tweaks the priority of a newly-enqueued task, or returns false to cancel it.
bool BackgroundQueue::adjust(Task &T) {}

void BackgroundQueue::push(Task T) {}

void BackgroundQueue::append(std::vector<Task> Tasks) {}

void BackgroundQueue::boost(llvm::StringRef Tag, unsigned NewPriority) {}

bool BackgroundQueue::blockUntilIdleForTest(
    std::optional<double> TimeoutSeconds) {}

void BackgroundQueue::notifyProgress() const {}

} // namespace clangd
} // namespace clang