Embedded Multicore Building Blocks V1.0.0
Typedefs | Functions

Parallel invocation of functions. More...

Typedefs

typedef embb::base::Function< void > embb::algorithms::InvokeFunctionType
 Function type used by Invoke. More...
 

Functions

template<typename Function1 , typename Function2 , ... >
void embb::algorithms::Invoke (Function1 func1, Function2 func2,...)
 Spawns two to ten function objects or embb::mtapi::Job at once and runs them in parallel. More...
 
template<typename Function1 , typename Function2 , ... >
void embb::algorithms::Invoke (Function1 func1, Function2 func2,..., const embb::mtapi::ExecutionPolicy &policy)
 Spawns two to ten function objects or embb::mtapi::Job at once and runs them in parallel using the given embb::mtapi::ExecutionPolicy. More...
 

Detailed Description

Parallel invocation of functions.

Typedef Documentation

Function type used by Invoke.

Function Documentation

template<typename Function1 , typename Function2 , ... >
void embb::algorithms::Invoke ( Function1  func1,
Function2  func2,
  ... 
)

Spawns two to ten function objects or embb::mtapi::Job at once and runs them in parallel.

Blocks until all of them are done.

Parameters
[in]func1First function object to invoke
[in]func2Second function object to invoke
template<typename Function1 , typename Function2 , ... >
void embb::algorithms::Invoke ( Function1  func1,
Function2  func2,
  ...,
const embb::mtapi::ExecutionPolicy policy 
)

Spawns two to ten function objects or embb::mtapi::Job at once and runs them in parallel using the given embb::mtapi::ExecutionPolicy.

Blocks until all of them are done.

Parameters
[in]func1Function object to invoke
[in]func2Second function object to invoke
[in]policyembb::mtapi::ExecutionPolicy to use