X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FQueueing.hh;h=7b7421e4ff41dfcc2faf7b00da38f8c21f1e12d8;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=7410318552217dd386f4bc144816b6e0fad7aee8;hpb=31d85cd6b8e03c5ecc924ca8892906be1bab702f;p=senf.git diff --git a/PPI/Queueing.hh b/PPI/Queueing.hh index 7410318..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,15 +47,18 @@ 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. \param[in] input Connector holding the queue - \param[in] event Type of event triggering the upate + \param[in] event Type of event triggering the update \returns new throttling state */ }; @@ -74,4 +78,5 @@ namespace ppi { // indent-tabs-mode: nil // ispell-local-dictionary: "american" // compile-command: "scons -u test" +// comment-column: 40 // End: