taskflow / taskflow

A General-purpose Parallel and Heterogeneous Task Programming System

Home Page:https://taskflow.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Async task priority

qbojj opened this issue · comments

Some tasks are less important than others: (e.g. optimization of shader pipelines while having less optimized version avaiable).
It would be helpful to have a non-tf::taskflow version of assigning priority to e.g. async and dependent async tasks.

@qbojj this is available in the current main branch with tf::TaskParams

unsigned priority = 2;
executor.async(TaskParam{"my task", priority}, [](){});