X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FQueueing.hh;h=7b7421e4ff41dfcc2faf7b00da38f8c21f1e12d8;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=9e3acf8f0b0e93456d7421253bbc3645b6ee70dc;hpb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;p=senf.git diff --git a/PPI/Queueing.hh b/PPI/Queueing.hh index 9e3acf8..7b7421e 100644 --- a/PPI/Queueing.hh +++ b/PPI/Queueing.hh @@ -25,6 +25,7 @@ #define HH_Queueing_ 1 // Custom includes +#include "predecl.hh" //#include "Queueing.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -46,10 +47,13 @@ namespace ppi { class QueueingDiscipline { public: + virtual ~QueueingDiscipline(); + enum Event { ENQUEUE, DEQUEUE }; ///< Possible queueing events enum State { THROTTLED, UNTHROTTLED }; ///< Possible queueing states - - State update(PassiveInput & input, Event event) = 0; ///< Calculate new queueing state + + virtual State update(connector::PassiveInput & input, Event event) = 0; + ///< Calculate new queueing state /**< Whenever the queue is manipulated, this member is called to calculate the new throttling state.