llvm::ThreadPriority

Scheduling priority hint for set_thread_priority.

Synopsis

Declared in <llvm/Support/Threading.h>

enum class ThreadPriority : int;

Members

NameDescription
Background Lower the current thread's priority as much as possible. Can be used for long-running tasks that are not time critical; more energy- efficient than Low.
Low Lower the current thread's priority such that it does not affect foreground tasks significantly. This is a good default for long- running, latency-insensitive tasks to make sure cpu is not hogged by this task.
Default Restore the current thread's priority to default scheduling priority.

Non-Member Functions

NameDescription
set_thread_prioritySet the calling thread's priority to Priority.