enum class ThreadPriority

Declared at: llvm/include/llvm/Support/Threading.h:235

Enumerators

NameValueComment
Background0Lower 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.
Low1Lower 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.
Default2Restore the current thread's priority to default scheduling priority.