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

Comparing EV/EV.xs (file contents):
Revision 1.86 by root, Mon Dec 3 13:41:24 2007 UTC vs.
Revision 1.87 by root, Fri Dec 7 18:09:38 2007 UTC

608 608
609 if (items > 1) 609 if (items > 1)
610 { 610 {
611 int active = ev_is_active (w); 611 int active = ev_is_active (w);
612 612
613 if (new_priority < EV_MINPRI || new_priority > EV_MAXPRI)
614 croak ("watcher priority out of range, value must be between %d and %d, inclusive", EV_MINPRI, EV_MAXPRI);
615
616 if (active) 613 if (active)
617 { 614 {
618 /* grrr. */ 615 /* grrr. */
619 PUSHMARK (SP); 616 PUSHMARK (SP);
620 XPUSHs (ST (0)); 617 XPUSHs (ST (0));
618 PUTBACK;
621 call_method ("stop", G_DISCARD | G_VOID); 619 call_method ("stop", G_DISCARD | G_VOID);
622 } 620 }
623 621
624 ev_set_priority (w, new_priority); 622 ev_set_priority (w, new_priority);
625 623
626 if (active) 624 if (active)
627 { 625 {
628 PUSHMARK (SP); 626 PUSHMARK (SP);
629 XPUSHs (ST (0)); 627 XPUSHs (ST (0));
628 PUTBACK;
630 call_method ("start", G_DISCARD | G_VOID); 629 call_method ("start", G_DISCARD | G_VOID);
631 } 630 }
632 } 631 }
633} 632}
634 OUTPUT: 633 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines