]> git.llucax.com Git - software/eventxx.git/blobdiff - test/mixed-way.cpp
Remove the using eventxx::dispatcher from the mixed test.
[software/eventxx.git] / test / mixed-way.cpp
index d9517a22f3d4f71ef0b5fc00cd3efd8f0caed514..02dfabc34103fee54e8df5cd4cfbe6015a5f9ffc 100644 (file)
@@ -2,13 +2,11 @@
 #include <iostream>
 #include <csignal>
 
-using eventxx::dispatcher;
-
 struct handler
 {
-       dispatcher& d;
+       eventxx::dispatcher& d;
        int i;
-       handler(dispatcher& d): d(d), i(0) {}
+       handler(eventxx::dispatcher& d): d(d), i(0) {}
        void operator() (int signum, short event)
        {
                if (i < 5) std::cout << "keep going...\n";
@@ -28,7 +26,7 @@ void sighandler(int signum, short event, void* data)
 
 int main()
 {
-       dispatcher d;
+       eventxx::dispatcher d;
        handler h(d);
        eventxx::csignal sigev(SIGINT, sighandler, &h.i);
        eventxx::signal< handler > e(SIGINT, h);