]> git.tdb.fi Git - netvis.git/blobdiff - source/resolver.h
Prevent crashing if the Resolver jams
[netvis.git] / source / resolver.h
index fb9dd10891871d5f34b0e1929416df111cdeb871..4b6e4986326fafa25249f6d0a99132b50f5ac3fc 100644 (file)
@@ -27,6 +27,7 @@ private:
 
        std::list<Host *> in_queue;
        std::list<Result> out_queue;
+       Host *current;
        Msp::Mutex mutex;
        bool done;
 
@@ -35,6 +36,7 @@ public:
        ~Resolver();
 
        void push(Host *);
+       void cancel(Host *);
        void tick();
 private:
        void main();