summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/task/function-task.cc
blob: 309a276c45b969473f9bbfc3a259b9870cc1975e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 ** \file task/function-task.cc
 ** \brief Implementation of task::FunctionTask.
 **
 */

#include <task/function-task.hh>

namespace task
{
  FunctionTask::FunctionTask(callback_type& callback,
                             const char* module_name,
                             const char* desc,
                             const char* name,
                             std::string deps)
    : SimpleTask(name, module_name, desc, deps)
    , execute_(callback)
  {}

  void FunctionTask::execute() const { execute_(); }

} //namespace task