enum class thread_priority
Description
This enumeration lists all possible thread-priorities for pika threads.
Declared at: libs/pika/coroutines/include/pika/coroutines/thread_enums.hpp:75
Enumerators
| Name | Value | Comment |
|---|---|---|
| unknown | -1 | |
| default_ | 0 | Will assign the priority of the task to the default (normal) priority. |
| low | 1 | Task goes onto a special low priority queue and will not be executed until all high/normal priority tasks are done, even if they are added after the low priority task. |
| normal | 2 | Task will be executed when it is taken from the normal priority queue, this is usually a first in-first-out ordering of tasks (depending on scheduler choice). This is the default priority. |
| high_recursive | 3 | The task is a high priority task and any child tasks spawned by this task will be made high priority as well - unless they are specifically flagged as non default priority. |
| boost | 4 | Same as \aexcept that the thread will fall back to \aif resumed after being suspended. |
| high | 5 | Task goes onto a special high priority queue and will be executed before normal/low priority tasks are taken (some schedulers modify the behavior slightly and the documentation for those should be consulted). |
| bound | 6 | Task goes onto a special high priority queue and will never be stolen by another thread after initial assignment. This should be used for thread placement tasks such as OpenMP type for loops. |
| critical | 3 | \condNOINTERNAL |