Template Function concore::v1::spawn(F&&, bool)

Function Documentation

template<typename F>
void concore::v1::spawn(F &&ftor, bool wake_workers = true)

Spawn one task, given a functor to be executed.

This is similar to the spawn(task&&, bool) function, but it takes directly a functor instead of a task.

Parameters
  • ftor: The ftor to be executed

  • wake_workers: True if we should wake other workers for this task

Template Parameters
  • F: The type of the functor

If the current task has a group associated, the new task will inherit that group.

See

spawn(task&& t, bool wake_workers)