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

Comparing libev/ev++.h (file contents):
Revision 1.44 by root, Wed Dec 3 15:23:44 2008 UTC vs.
Revision 1.45 by root, Fri Jul 10 00:36:21 2009 UTC

205#else 205#else
206 ev_default_fork (); 206 ev_default_fork ();
207#endif 207#endif
208 } 208 }
209 209
210 unsigned int backend () const throw ()
211 {
212 return ev_backend (EV_AX);
213 }
214
215 tstamp now () const throw ()
216 {
217 return ev_now (EV_AX);
218 }
219
220 void ref () throw ()
221 {
222 ev_ref (EV_AX);
223 }
224
225 void unref () throw ()
226 {
227 ev_unref (EV_AX);
228 }
229
230#if EV_MINIMAL < 2
210 unsigned int count () const throw () 231 unsigned int count () const throw ()
211 { 232 {
212 return ev_loop_count (EV_AX); 233 return ev_loop_count (EV_AX);
213 } 234 }
214 235
215 unsigned int backend () const throw () 236 unsigned int depth () const throw ()
216 {
217 return ev_backend (EV_AX);
218 } 237 {
219
220 tstamp now () const throw ()
221 {
222 return ev_now (EV_AX); 238 return ev_loop_depth (EV_AX);
223 }
224
225 void ref () throw ()
226 {
227 ev_ref (EV_AX);
228 }
229
230 void unref () throw ()
231 {
232 ev_unref (EV_AX);
233 } 239 }
234 240
235 void set_io_collect_interval (tstamp interval) throw () 241 void set_io_collect_interval (tstamp interval) throw ()
236 { 242 {
237 ev_set_io_collect_interval (EV_AX_ interval); 243 ev_set_io_collect_interval (EV_AX_ interval);
239 245
240 void set_timeout_collect_interval (tstamp interval) throw () 246 void set_timeout_collect_interval (tstamp interval) throw ()
241 { 247 {
242 ev_set_timeout_collect_interval (EV_AX_ interval); 248 ev_set_timeout_collect_interval (EV_AX_ interval);
243 } 249 }
250#endif
244 251
245 // function callback 252 // function callback
246 void once (int fd, int events, tstamp timeout, void (*cb)(int, void *), void *arg = 0) throw () 253 void once (int fd, int events, tstamp timeout, void (*cb)(int, void *), void *arg = 0) throw ()
247 { 254 {
248 ev_once (EV_AX_ fd, events, timeout, cb, arg); 255 ev_once (EV_AX_ fd, events, timeout, cb, arg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines