5 using eventxx::dispatcher;
11 handler(dispatcher& d): d(d), i(0) {}
12 void handle_event(int signum, eventxx::type event)
14 std::cout << ++i << " interrupts, ";
15 if (i < 5) std::cout << "keep going...\n";
18 std::cout << "done!\n";
24 typedef eventxx::mem_cb< handler, void (handler::*)(int, eventxx::type) > cb_type;
30 cb_type cb(h, &handler::handle_event);
31 eventxx::signal< cb_type > e(SIGINT, cb);