tasks_cpp_calc_task-snippet.h 311 Bytes
Newer Older
Michael Schmid committed
1 2 3 4 5 6 7 8 9 10
    int a = n - 1;
    int x;
    embb::tasks::Task task = node.Spawn(
      embb::base::Bind(
        embb::base::MakeFunction(fibonacciActionFunction),
        a,                             /* argument */
        &x,                            /* result */
        embb::base::Placeholder::_1
      )
    );