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

NameValueComment
unknown-1
default_0Will assign the priority of the task to the default (normal) priority.
low1Task 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.
normal2Task 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_recursive3The 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.
boost4Same as \aexcept that the thread will fall back to \aif resumed after being suspended.
high5Task 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).
bound6Task 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.
critical3\condNOINTERNAL