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

Comparing libev/ev.h (file contents):
Revision 1.93 by root, Fri Feb 1 13:08:54 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 :) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines