X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FFdEvent.ih;h=940a05794c9995fa42706de9254dd2a1f71d01ff;hb=412024ed31a4ab4eaea7a4165a434f8efebee325;hp=bcb98a9f3f8e50e65cd222dc7b9320bfd39dba4c;hpb=64a21c02b81501982ba4406ea69a388825c23057;p=senf.git diff --git a/Scheduler/FdEvent.ih b/Scheduler/FdEvent.ih index bcb98a9..940a057 100644 --- a/Scheduler/FdEvent.ih +++ b/Scheduler/FdEvent.ih @@ -23,8 +23,8 @@ /** \file \brief FdDispatcher internal header */ -#ifndef IH_FdDispatcher_ -#define IH_FdDispatcher_ 1 +#ifndef IH_SENF_Scheduler_FdEvent_ +#define IH_SENF_Scheduler_FdEvent_ 1 // Custom includes #include "../boost/intrusive/iset.hpp" @@ -39,24 +39,24 @@ namespace scheduler { namespace detail { struct FdSetCompare { - bool operator()(FdEvent const & a, FdEvent const & b) const - { return a.fd_ < b.fd_; } + bool operator()(FdEvent const & a, FdEvent const & b) const + { return a.fd_ < b.fd_; } }; struct FindFd { - bool operator()(FdEvent const & a, int b) const - { return a.fd_ < b; } - bool operator()(int a, FdEvent const & b) const - { return a < b.fd_; } + bool operator()(FdEvent const & a, int b) const + { return a.fd_ < b; } + bool operator()(int a, FdEvent const & b) const + { return a < b.fd_; } }; class FdDispatcher - : public senf::singleton + : public senf::singleton { public: - using senf::singleton::instance; - using senf::singleton::alive; - + using senf::singleton::instance; + using senf::singleton::alive; + bool add(FdEvent & event); void remove(FdEvent & event); @@ -68,9 +68,9 @@ namespace detail { FdDispatcher(); ~FdDispatcher(); - typedef boost::intrusive::imultiset< FdSetBase::value_traits, - FdSetCompare, - false > FdSet; + typedef boost::intrusive::imultiset< FdSetBase::value_traits, + FdSetCompare, + false > FdSet; FdSet fds_; @@ -80,11 +80,11 @@ namespace detail { }; class FileDispatcher - : public senf::singleton + : public senf::singleton { public: - using senf::singleton::instance; - using senf::singleton::alive; + using senf::singleton::instance; + using senf::singleton::alive; void add(FdEvent & event); void remove(FdEvent & event); @@ -104,9 +104,9 @@ namespace detail { // We really only need a list here but we need to use the same event structure used by // the FdEvent. - typedef boost::intrusive::imultiset< FdSetBase::value_traits, - FdSetCompare, - false > FdSet; + typedef boost::intrusive::imultiset< FdSetBase::value_traits, + FdSetCompare, + false > FdSet; FdSet fds_; int managerTimeout_;