clang-tools  15.0.0git
Public Member Functions | Public Attributes | List of all members
clang::clangd::BackgroundQueue::Task Struct Reference

A work item on the thread pool's queue. More...

#include <Background.h>

Collaboration diagram for clang::clangd::BackgroundQueue::Task:
Collaboration graph

Public Member Functions

 Task (std::function< void()> Run)
bool operator< (const Task &O) const

Public Attributes

std::function< void()> Run
llvm::ThreadPriority ThreadPri = llvm::ThreadPriority::Low
unsigned QueuePri = 0
std::string Tag
uint64_t Key = 0

Detailed Description

A work item on the thread pool's queue.

Definition at line 71 of file Background.h.

Constructor & Destructor Documentation

◆ Task()

clang::clangd::BackgroundQueue::Task::Task ( std::function< void()>  Run)

Definition at line 72 of file Background.h.

Member Function Documentation

◆ operator<()

bool clang::clangd::BackgroundQueue::Task::operator< ( const Task O) const

Definition at line 81 of file Background.h.

References QueuePri.

Member Data Documentation

◆ Key

uint64_t clang::clangd::BackgroundQueue::Task::Key = 0

Definition at line 78 of file Background.h.

◆ QueuePri

unsigned clang::clangd::BackgroundQueue::Task::QueuePri = 0

Definition at line 76 of file Background.h.

Referenced by operator<().

◆ Run

std::function<void()> clang::clangd::BackgroundQueue::Task::Run

Definition at line 74 of file Background.h.

◆ Tag

std::string clang::clangd::BackgroundQueue::Task::Tag

Definition at line 77 of file Background.h.

◆ ThreadPri

llvm::ThreadPriority clang::clangd::BackgroundQueue::Task::ThreadPri = llvm::ThreadPriority::Low

Definition at line 75 of file Background.h.

Referenced by clang::clangd::BackgroundQueue::work().

The documentation for this struct was generated from the following file: