#include "ev.h"
+ enum {
+ UNDEF = EV_UNDEF,
+ NONE = EV_NONE,
+ READ = EV_READ,
+ WRITE = EV_WRITE,
+ TIMEOUT = EV_TIMEOUT,
+ PERIODIC = EV_PERIODIC,
+ SIGNAL = EV_SIGNAL,
+ IDLE = EV_IDLE,
+ CHECK = EV_CHECK,
+ PREPARE = EV_PREPARE,
+ CHILD = EV_CHILD,
+ ERROR = EV_ERROR,
+ };
+
typedef ev_tstamp tstamp;
inline ev_tstamp now (EV_P)
return call (this, events); \
} \
\
+ ~cppstem () \
+ { \
+ stop (); \
+ } \
+ \
private: \
\
cppstem (const cppstem &o) \
}
};
+ #if EV_PERIODICS
EV_DECLARE_WATCHER (periodic, periodic)
void set (ev_tstamp at, ev_tstamp interval = 0.)
{
ev_periodic_again (EV_A_ static_cast<ev_periodic *>(this));
}
};
+ #endif
EV_DECLARE_WATCHER (idle, idle)
};