libtasks Documentation  1.6
exec.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2014 ADTECH GmbH
3  * Licensed under MIT (https://github.com/adtechlabs/libtasks/blob/master/COPYING)
4  *
5  * Author: Andreas Pohl
6  */
7 
8 #ifndef _TASKS_EXEC_H_
9 #define _TASKS_EXEC_H_
10 
11 #include <tasks/exec_task.h>
12 
13 namespace tasks {
14 
24 void exec(exec_task::func_t f);
25 
38 }
39 
40 #endif // _TASKS_EXEC_H_
std::function< void()> finish_func_void_t
Definition: task.h:22
void exec(exec_task::func_t f)
Execute code in a separate executor thread.
Definition: exec.cpp:14
std::function< void()> func_t
Definition: exec_task.h:20