ext/revdispatch/libdispatch-0.1/src/ev_dispatch.h in evdispatch-0.2.4 vs ext/revdispatch/libdispatch-0.1/src/ev_dispatch.h in evdispatch-0.2.5
- old
+ new
@@ -245,20 +245,21 @@
static void timeout_cb_start(struct ev_loop *loop, struct ev_timer *w, int revents);
void timeout_cb(struct ev_loop *loop, struct ev_timer *w, int revents);
static void request_cb_start( struct ev_loop *loop, struct ev_async *w, int revents );
void request_cb( struct ev_loop *loop, struct ev_async *w, int revents );
+ static void shutdown_loop_cb( struct ev_loop *loop, struct ev_async *w, int revents );
bool store_response_for( request_t id );
protected:
struct ev_loop *m_loop;
// this triggers a callback once every N milliseconds
struct ev_timer m_clock;
- struct ev_async m_request_watcher;
+ struct ev_async m_request_watcher, m_loop_ender;
pid_t m_pid;
pthread_t m_tid;
request_t m_counter; // used to create ids for each requests