enum class ThreadPriority
Declared at: llvm/include/llvm/Support/Threading.h:235
Enumerators
Name | Value | Comment |
---|---|---|
Background | 0 | 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 | 1 | 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 | 2 | Restore the current thread's priority to default scheduling priority. |