X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FIOEvent.cti;h=1b160e06a371231aabaaa5e9697206fbbe5eb0dd;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=682d464fe2a5bae9caceb32e8f4e982c2fafe3bb;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/PPI/IOEvent.cti b/PPI/IOEvent.cti index 682d464..1b160e0 100644 --- a/PPI/IOEvent.cti +++ b/PPI/IOEvent.cti @@ -26,6 +26,7 @@ //#include "IOEvent.ih" // Custom includes +#include #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// @@ -35,8 +36,10 @@ template prefix_ senf::ppi::IOEvent::IOEvent(Handle handle, unsigned events) - : fd_(retrieve_filehandle(handle)), events_(events) -{} + : fd_ (-1), event_ ("senf::ppi::IOEvent", boost::bind(&IOEvent::cb,this,_1)) +{ + set(handle,events); +} ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_