enum class SetThreadPriorityResult
Description
If priority is Background tries to lower current threads priority such that it does not affect foreground tasks significantly. Can be used for long-running, latency-insensitive tasks to make sure cpu is not hogged by this task. If the priority is default tries to restore current threads priority to default scheduling priority.
Declared at: llvm/include/llvm/Support/Threading.h:197
Enumerators
| Name | Value | Comment |
|---|---|---|
| FAILURE | 0 | |
| SUCCESS | 1 |