Struct tbb_executor

Struct Documentation

struct concore::v1::tbb_executor

Executor that sends tasks to TBB.

This executors wraps the task execution from TBB.

This executor provides just basic support for executing tasks, but not other features like cancellation, waiting for tasks, etc.

The executor takes as constructor parameter the priority of the task to be used when enqueueing the task.

Two executor objects are equivalent if their priorities match.

See

global_executor

Public Types

enum priority

The priority of the task to be used.

Values:

enumerator prio_high

High-priority tasks.

enumerator prio_normal

Tasks with normal priority.

enumerator prio_low

Tasks with low priority.

Public Functions

tbb_executor(priority prio = prio_normal)

Constructor.

template<typename F>
void execute(F &&f) const

Method called to execute work in this executor.

Friends

friend bool operator==(tbb_executor l, tbb_executor r)

Equality operator.

friend bool operator!=(tbb_executor l, tbb_executor r)

Inequality operator.