Add vtkThreadedTaskQueue2
vtkThreadedTaskQueue2
can accept "worker" functions of any type and number of arguments.
It brings however an added complexity since it returns a std::future
when you Push
.
WaitingQueue can be used to manage them. See test for example usage