|
libtasks Documentation
1.6
|
Namespaces | |
| net | |
| serial | |
| tools | |
Classes | |
| class | cleanup_task |
| class | disk_io_task |
| class | dispatcher |
| class | disposable |
| Base class for objects/tasks that can be deleted. More... | |
| class | error_base |
| A helper class for basic error reporting. More... | |
| class | event_task |
| class | exec_task |
| class | executor |
| class | io_task_base |
| This is the base class for io event tasks. It controls an ev_io watcher that monitors io events on file handles. More... | |
| class | net_io_task |
| The net_io_task implements the base for socket based network tasks. More... | |
| class | serial_io_task |
| The serial_io_task implements the base tasks that implement serial communication. More... | |
| class | task |
| The base class for any task. More... | |
| class | tasks_exception |
| Tasks execption class. More... | |
| class | timer_task |
| struct | version_helper |
| struct | loop_t |
| Needed to use std::unique_ptr<> More... | |
| struct | task_func_queue_t |
| struct | event |
| class | worker |
| class | test_exec |
Typedefs | |
| typedef std::function< void(int)> | signal_func_t |
| typedef std::function< void(struct ev_loop *)> | task_func_t |
Functions | |
| void | exec (exec_task::func_t f) |
| Execute code in a separate executor thread. More... | |
| void | exec (exec_task::func_t f, task::finish_func_void_t ff) |
| Execute code in a separate executor thread. More... | |
| const char * | version () |
| template<typename EV_t > | |
| void | tasks_event_callback (struct ev_loop *loop, EV_t w, int e) |
| Callback for I/O events. More... | |
| void | tasks_async_callback (struct ev_loop *loop, ev_async *w, int events) |
| Callback for async events. More... | |
| static void | handle_signal (struct ev_loop *, ev_signal *sig, int) |
| typedef std::function<void(int)> tasks::signal_func_t |
Definition at line 32 of file dispatcher.h.
| typedef std::function<void(struct ev_loop*)> tasks::task_func_t |
Function type for functors that get executed in the context of a worker thread. See worker::exec_in_worker_ctx(task_func_t f).
Definition at line 19 of file event_task.h.
|
strong |
Definition at line 16 of file tasks_exception.h.
| void tasks::exec | ( | exec_task::func_t | f | ) |
Execute code in a separate executor thread.
Execute code in a separate executor thread that does not block a worker thread. This can be useful to implement async interfaces using libraries that do not provide async interfaces.
| f | The functor to execute. |
Definition at line 14 of file exec.cpp.


| void tasks::exec | ( | exec_task::func_t | f, |
| task::finish_func_void_t | ff | ||
| ) |
Execute code in a separate executor thread.
Execute code in a separate executor thread that does not block a worker thread. This can be useful to implement async interfaces using libraries that do not provide async interfaces.
| f | The functor to execute. |
| ff | The finish functor to be executed when f has been executed. |
Definition at line 16 of file exec.cpp.

|
static |
| void tasks::tasks_async_callback | ( | struct ev_loop * | loop, |
| ev_async * | w, | ||
| int | events | ||
| ) |
Callback for async events.
Definition at line 106 of file worker.cpp.


| void tasks::tasks_event_callback | ( | struct ev_loop * | loop, |
| EV_t | w, | ||
| int | e | ||
| ) |
| const char * tasks::version | ( | ) |
Definition at line 14 of file version.cpp.