Intel® oneAPI Threading Building Blocks Developer Guide and API Reference
A newer version of this document is available. Customers should click here to go to the newest version.
task_group extensions
Description
Intel® oneAPI Threading Building Blocks (oneTBB) implementation extends the tbb::task_group specification with the following members:
requirements for a user-provided function object
API
Header
#include <oneapi/tbb/task_group.h>
Synopsis
namespace oneapi {
namespace tbb {
class task_group {
public:
//only the requirements for the return type of function F are changed
template<typename F>
task_handle defer(F&& f);
//only the requirements for the return type of function F are changed
template<typename F>
task_group_status run_and_wait(const F& f);
//only the requirements for the return type of function F are changed
template<typename F>
void run(F&& f);
};
} // namespace tbb
} // namespace oneapi
Member Functions
template<typenameF>task_handledefer(F&&f)
As an optimization hint, F might return a task_handle, which task object can be executed next.
template<typenameF>task_group_statusrun_and_wait(constF&f)
As an optimization hint, F might return a task_handle, which task object can be executed next.
template<typenameF>voidrun(F&&f)
As an optimization hint, F might return a task_handle, which task object can be executed next.
See also
oneapi::tbb::task_handle class