X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FFdDispatcher.ih;h=b0c1c01eaee37993253d605c4c943444c797400b;hb=09010bdcf81888480d4d481a523f9714a89f2625;hp=81ea330223f5cf481ea5ebf52fee018a5c9f1f42;hpb=919e588a2c387c9a910aa8761e65155a0d205bba;p=senf.git diff --git a/Scheduler/FdDispatcher.ih b/Scheduler/FdDispatcher.ih index 81ea330..b0c1c01 100644 --- a/Scheduler/FdDispatcher.ih +++ b/Scheduler/FdDispatcher.ih @@ -34,10 +34,18 @@ namespace senf { namespace scheduler { namespace detail { + /** \brief Internal: File descriptor task + + \implementation This class allows to inherit FIFORunner::TaskInfo multiple times to add + multiple tasks to one event and still allows efficient access to the event class + */ template struct FdTask : public FIFORunner::TaskInfo { + explicit FdTask(std::string const & name) + : FIFORunner::TaskInfo (name) {} + typedef boost::function Callback; virtual void run(); Self & self();