5 using eventxx::dispatcher;
11 handler(dispatcher& d): d(d), i(0) {}
12 void operator() (int signum, short event)
14 std::cout << ++i << " interrupts, ";
15 if (i < 5) std::cout << "keep going...\n";
18 std::cout << "done!\n";
28 eventxx::signal< handler > e(SIGINT, h);