ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev++.h
(Generate patch)

Comparing libev/ev++.h (file contents):
Revision 1.2 by root, Sun Nov 11 00:05:59 2007 UTC vs.
Revision 1.3 by root, Sun Nov 11 01:07:35 2007 UTC

127 void operator ()(int events = EV_UNDEF) \ 127 void operator ()(int events = EV_UNDEF) \
128 { \ 128 { \
129 return call (this, events); \ 129 return call (this, events); \
130 } \ 130 } \
131 \ 131 \
132 ~cppstem () \
133 { \
134 stop (); \
135 } \
136 \
132 private: \ 137 private: \
133 \ 138 \
134 cppstem (const cppstem &o) \ 139 cppstem (const cppstem &o) \
135 : callback<cppstem> (this, (void (cppstem::*)(cppstem &, int))0) \ 140 : callback<cppstem> (this, (void (cppstem::*)(cppstem &, int))0) \
136 { /* disabled */ } \ 141 { /* disabled */ } \
181 { 186 {
182 ev_timer_again (EV_A_ static_cast<ev_timer *>(this)); 187 ev_timer_again (EV_A_ static_cast<ev_timer *>(this));
183 } 188 }
184 }; 189 };
185 190
191 #if EV_PERIODICS
186 EV_DECLARE_WATCHER (periodic, periodic) 192 EV_DECLARE_WATCHER (periodic, periodic)
187 void set (ev_tstamp at, ev_tstamp interval = 0.) 193 void set (ev_tstamp at, ev_tstamp interval = 0.)
188 { 194 {
189 int active = is_active (); 195 int active = is_active ();
190 if (active) stop (); 196 if (active) stop ();
201 void again () 207 void again ()
202 { 208 {
203 ev_periodic_again (EV_A_ static_cast<ev_periodic *>(this)); 209 ev_periodic_again (EV_A_ static_cast<ev_periodic *>(this));
204 } 210 }
205 }; 211 };
212 #endif
206 213
207 EV_DECLARE_WATCHER (idle, idle) 214 EV_DECLARE_WATCHER (idle, idle)
208 }; 215 };
209 216
210 EV_DECLARE_WATCHER (prepare, prepare) 217 EV_DECLARE_WATCHER (prepare, prepare)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines