Scheduling priority hint for set_thread_priority.
Declared in <llvm/Support/Threading.h>
enum class ThreadPriority : int;
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
set_thread_priority | Set the calling thread's priority to Priority. |