libfilezilla
Classes | Namespaces | Typedefs | Functions
invoker.hpp File Reference

Declares fz::make_invoker and assorted machinery. More...

#include "event_handler.hpp"
Include dependency graph for invoker.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 fz
 The namespace used by libfilezilla.
 

Typedefs

typedef std::function< void(std::function< void()>)> invoker_factory
 

Functions

template<typename F >
auto make_invoker (event_loop &loop, F &&f)
 Wraps the passed function, so that it is always invoked in the context of the loop. More...
 
template<typename F >
auto make_invoker (event_handler &h, F &&f)
 
invoker_factory get_invoker_factory (event_loop &loop)
 Creates an invoker factory. More...
 
template<typename F >
auto make_invoker (invoker_factory const &inv, F &&f)
 Creates an invoker using the given factory. More...
 

Detailed Description

Declares fz::make_invoker and assorted machinery.