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

Comparing libev/ev.h (file contents):
Revision 1.92 by root, Thu Jan 31 13:10:56 2008 UTC vs.
Revision 1.94 by root, Tue Feb 19 17:09:28 2008 UTC

430 430
431 return ev_rt_now; 431 return ev_rt_now;
432} 432}
433# endif 433# endif
434 434
435static int
436ev_is_default_loop (EV_P)
437{
438#if EV_MULTIPLICITY
439 extern struct ev_loop *ev_default_loop_ptr;
440
441 return !!(EV_A == ev_default_loop_ptr);
442#else
443 return 1;
444#endif
445}
446
435void ev_default_destroy (void); /* destroy the default loop */ 447void ev_default_destroy (void); /* destroy the default loop */
436/* this needs to be called after fork, to duplicate the default loop */ 448/* this needs to be called after fork, to duplicate the default loop */
437/* if you create alternative loops you have to call ev_loop_fork on them */ 449/* if you create alternative loops you have to call ev_loop_fork on them */
438/* you can call it in either the parent or the child */ 450/* you can call it in either the parent or the child */
439/* you can actually call it at any time, anywhere :) */ 451/* you can actually call it at any time, anywhere :) */
487#define ev_idle_set(ev) /* nop, yes, this is a serious in-joke */ 499#define ev_idle_set(ev) /* nop, yes, this is a serious in-joke */
488#define ev_prepare_set(ev) /* nop, yes, this is a serious in-joke */ 500#define ev_prepare_set(ev) /* nop, yes, this is a serious in-joke */
489#define ev_check_set(ev) /* nop, yes, this is a serious in-joke */ 501#define ev_check_set(ev) /* nop, yes, this is a serious in-joke */
490#define ev_embed_set(ev,other_) do { (ev)->other = (other_); } while (0) 502#define ev_embed_set(ev,other_) do { (ev)->other = (other_); } while (0)
491#define ev_fork_set(ev) /* nop, yes, this is a serious in-joke */ 503#define ev_fork_set(ev) /* nop, yes, this is a serious in-joke */
492#define ev_async_set(ev) do { (ev)->gotasync = 0; } while (0) 504#define ev_async_set(ev) do { (ev)->sent = 0; } while (0)
493 505
494#define ev_io_init(ev,cb,fd,events) do { ev_init ((ev), (cb)); ev_io_set ((ev),(fd),(events)); } while (0) 506#define ev_io_init(ev,cb,fd,events) do { ev_init ((ev), (cb)); ev_io_set ((ev),(fd),(events)); } while (0)
495#define ev_timer_init(ev,cb,after,repeat) do { ev_init ((ev), (cb)); ev_timer_set ((ev),(after),(repeat)); } while (0) 507#define ev_timer_init(ev,cb,after,repeat) do { ev_init ((ev), (cb)); ev_timer_set ((ev),(after),(repeat)); } while (0)
496#define ev_periodic_init(ev,cb,at,ival,res) do { ev_init ((ev), (cb)); ev_periodic_set ((ev),(at),(ival),(res)); } while (0) 508#define ev_periodic_init(ev,cb,at,ival,res) do { ev_init ((ev), (cb)); ev_periodic_set ((ev),(at),(ival),(res)); } while (0)
497#define ev_signal_init(ev,cb,signum) do { ev_init ((ev), (cb)); ev_signal_set ((ev), (signum)); } while (0) 509#define ev_signal_init(ev,cb,signum) do { ev_init ((ev), (cb)); ev_signal_set ((ev), (signum)); } while (0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines