This chapter covers the high-level interface to the task scheduler. Chapter Task Scheduler covers the low-level interface. The high-level interface lets you easily create groups of potentially parallel tasks from functors or lambda expressions. The low-level interface permits more detailed control, such as control over exception propogation and affinity.
High-level interface for running functions in parallel.
template<typename Func> task_handle; template<typename Func> task_handle<Func> make_task( const Func& f ); enum task_group_status; class task_group; class structured_task_group; bool is_current_task_group_canceling();
#include "tbb/task_group.h"
Requirements
Functor arguments for various methods in this chapter should meet the requirements in the table below.