ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.85 by root, Sat Dec 1 22:51:34 2007 UTC vs.
Revision 1.87 by root, Fri Dec 7 18:09:38 2007 UTC

244 else 244 else
245 sv_events_cache = sv_events; 245 sv_events_cache = sv_events;
246 246
247 if (SvTRUE (ERRSV)) 247 if (SvTRUE (ERRSV))
248 { 248 {
249 SPAGAIN;
249 PUSHMARK (SP); 250 PUSHMARK (SP);
250 PUTBACK; 251 PUTBACK;
251 call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR); 252 call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR);
252 } 253 }
253 254
419 420
420NV ev_time () 421NV ev_time ()
421 422
422unsigned int ev_default_loop (unsigned int flags = ev_supported_backends ()) 423unsigned int ev_default_loop (unsigned int flags = ev_supported_backends ())
423 424
425unsigned int ev_loop_count ()
426
424void ev_loop (int flags = 0) 427void ev_loop (int flags = 0)
425 428
426void ev_unloop (int how = 1) 429void ev_unloop (int how = 1)
427 430
428ev_io *io (SV *fh, int events, SV *cb) 431ev_io *io (SV *fh, int events, SV *cb)
605 608
606 if (items > 1) 609 if (items > 1)
607 { 610 {
608 int active = ev_is_active (w); 611 int active = ev_is_active (w);
609 612
610 if (new_priority < EV_MINPRI || new_priority > EV_MAXPRI)
611 croak ("watcher priority out of range, value must be between %d and %d, inclusive", EV_MINPRI, EV_MAXPRI);
612
613 if (active) 613 if (active)
614 { 614 {
615 /* grrr. */ 615 /* grrr. */
616 PUSHMARK (SP); 616 PUSHMARK (SP);
617 XPUSHs (ST (0)); 617 XPUSHs (ST (0));
618 PUTBACK;
618 call_method ("stop", G_DISCARD | G_VOID); 619 call_method ("stop", G_DISCARD | G_VOID);
619 } 620 }
620 621
621 ev_set_priority (w, new_priority); 622 ev_set_priority (w, new_priority);
622 623
623 if (active) 624 if (active)
624 { 625 {
625 PUSHMARK (SP); 626 PUSHMARK (SP);
626 XPUSHs (ST (0)); 627 XPUSHs (ST (0));
628 PUTBACK;
627 call_method ("start", G_DISCARD | G_VOID); 629 call_method ("start", G_DISCARD | G_VOID);
628 } 630 }
629 } 631 }
630} 632}
631 OUTPUT: 633 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines