1 #ifndef PROTON_EVENT_LOOP_HPP
2 #define PROTON_EVENT_LOOP_HPP
25 #include "./internal/config.hpp"
31 #include <type_traits>
34 struct pn_connection_t;
68 virtual bool inject(std::function<
void()> f) = 0;
76 PN_CPP_EXTERN
static event_loop*
get(pn_connection_t*);
77 PN_CPP_EXTERN
static event_loop*
get(pn_session_t*);
78 PN_CPP_EXTERN
static event_loop*
get(pn_link_t*);
88 #endif // PROTON_EVENT_LOOP_HPP
A connection to a remote AMQP peer.
Definition: connection.hpp:48
virtual void on_inject()=0
Called when the injected code is executed.
Experimental - A serial execution context.
Definition: event_loop.hpp:56
Experimental - A handler for injected code.
Definition: event_loop.hpp:41
Experimental - A thread-safe object wrapper.
Definition: connection.hpp:45