X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/3de7450f04f8d9cd241eb600da57cbe0539aa62c..a40aa4e85b7652886bda0669191a2185bfcbfc2d:/test/bench.cpp diff --git a/test/bench.cpp b/test/bench.cpp index a098012..be6a8c7 100644 --- a/test/bench.cpp +++ b/test/bench.cpp @@ -30,7 +30,7 @@ * Added chain event propagation to improve the sensitivity of * the measure respect to the event loop efficency. * - * Wed 2006-12-27 - Modified by Leandro Lucarella + * Wed 2006-12-27 - Modified by Leandro Lucarella * * Adapted to test the C++ inteface. * @@ -55,14 +55,14 @@ #include #include -#include +#include static int count, writes, fired; static int *pipes; static int num_pipes, num_active, num_writes; -static std::vector< event::cevent* > events; -static event::dispatcher d; +static std::vector< eventxx::cevent* > events; +static eventxx::dispatcher d; void @@ -81,15 +81,15 @@ read_cb(int fd, short which, void *arg) } } -event::time * +eventxx::time * run_once(void) { int *cp, i, space; - static event::time ts, te; + static eventxx::time ts, te; for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { - events.push_back(new event::cevent(cp[0], EV_READ | EV_PERSIST, - read_cb, (void *) i)); + events.push_back(new eventxx::cevent(cp[0], + eventxx::READ | eventxx::PERSIST, read_cb, (void *) i)); d.add(*events[i]); } @@ -131,7 +131,7 @@ main (int argc, char **argv) { struct rlimit rl; int i, c; - event::time* tv; + eventxx::time* tv; int *cp; extern char *optarg;