libtasks Documentation
1.6
Main Page
Namespaces
Classes
Files
File List
File Members
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
37
void
exec
(
exec_task::func_t
f,
task::finish_func_void_t
ff);
38
}
39
40
#endif // _TASKS_EXEC_H_
tasks::task::finish_func_void_t
std::function< void()> finish_func_void_t
Definition:
task.h:22
tasks::exec
void exec(exec_task::func_t f)
Execute code in a separate executor thread.
Definition:
exec.cpp:14
tasks::exec_task::func_t
std::function< void()> func_t
Definition:
exec_task.h:20
exec_task.h
include
tasks
exec.h
Generated by
1.8.6