|
Graph Framework
|
Callback item. More...
#include <workflow.hpp>
Public Member Functions | |
| callback_item (std::function< void(void)> callback) | |
| Construct a workflow item. | |
| virtual void | create_kernel_call (jit::context< T, SAFE_MATH > &context) |
| Set the kernel function. | |
| virtual void | run () |
| Run the work item. | |
Protected Attributes | |
| std::function< void(void)> | callback |
| Callback function. | |
| std::function< void(void)> | kernel |
| Kernel function. | |
Callback item.
| T | Base type of the calculation. |
| SAFE_MATH | Use Safe Math operations. |
|
inline |
Construct a workflow item.
| [in] | callback | Lambda function to run. |
|
inlinevirtual |
Set the kernel function.
| [in,out] | context | Jit context. |
Implements workflow::item< T, SAFE_MATH >.
|
inlinevirtual |
Run the work item.
Implements workflow::item< T, SAFE_MATH >.