Visible to Intel only — GUID: GUID-DE975727-F1F8-4335-9EE2-6B5D4F6488F2
Visible to Intel only — GUID: GUID-DE975727-F1F8-4335-9EE2-6B5D4F6488F2
task_group extensions
Description
oneAPI Threading Building Blocks (oneTBB) implementation extends the tbb::task_group specification with the 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