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.95 by root, Wed Apr 2 06:34:50 2008 UTC

324{ 324{
325 EV_WATCHER (ev_async) 325 EV_WATCHER (ev_async)
326 326
327 EV_ATOMIC_T sent; /* private */ 327 EV_ATOMIC_T sent; /* private */
328} ev_async; 328} ev_async;
329
330# define ev_async_pending(w) (((w)->sent + 0)
329#endif 331#endif
330 332
331/* the presence of this union forces similar struct layout */ 333/* the presence of this union forces similar struct layout */
332union ev_any_watcher 334union ev_any_watcher
333{ 335{
430 432
431 return ev_rt_now; 433 return ev_rt_now;
432} 434}
433# endif 435# endif
434 436
437static int
438ev_is_default_loop (EV_P)
439{
440#if EV_MULTIPLICITY
441 extern struct ev_loop *ev_default_loop_ptr;
442
443 return !!(EV_A == ev_default_loop_ptr);
444#else
445 return 1;
446#endif
447}
448
435void ev_default_destroy (void); /* destroy the default loop */ 449void ev_default_destroy (void); /* destroy the default loop */
436/* this needs to be called after fork, to duplicate the default loop */ 450/* 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 */ 451/* 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 */ 452/* you can call it in either the parent or the child */
439/* you can actually call it at any time, anywhere :) */ 453/* you can actually call it at any time, anywhere :) */
487#define ev_idle_set(ev) /* nop, yes, this is a serious in-joke */ 501#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 */ 502#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 */ 503#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) 504#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 */ 505#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) 506#define ev_async_set(ev) do { (ev)->sent = 0; } while (0)
493 507
494#define ev_io_init(ev,cb,fd,events) do { ev_init ((ev), (cb)); ev_io_set ((ev),(fd),(events)); } while (0) 508#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) 509#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) 510#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) 511#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