]> git.llucax.com Git - software/eventxx.git/blobdiff - test/bench.cpp
Avoid a weird gcc warning when compiling with optimizations.
[software/eventxx.git] / test / bench.cpp
index e621ed067fed3509efd97787c6b4a6bbb3247f92..be6a8c73bba2c19e3fb5ae3921ea68b6167b7859 100644 (file)
@@ -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 <llucarella@integratech.com.ar>
+ * Wed 2006-12-27 - Modified by Leandro Lucarella <llucax+eventxx@gmail.com>
  *
  *     Adapted to test the C++ inteface.
  *
@@ -88,8 +88,8 @@ run_once(void)
        static eventxx::time ts, te;
 
        for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) {
-               events.push_back(new eventxx::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]);
        }