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

Comparing EV/EV.xs (file contents):
Revision 1.66 by root, Mon Nov 12 08:00:03 2007 UTC vs.
Revision 1.71 by root, Sat Nov 17 01:41:33 2007 UTC

167 PUSHs (sv_self); 167 PUSHs (sv_self);
168 PUSHs (sv_events); 168 PUSHs (sv_events);
169 169
170 PUTBACK; 170 PUTBACK;
171 call_sv (w->cb_sv, G_DISCARD | G_VOID | G_EVAL); 171 call_sv (w->cb_sv, G_DISCARD | G_VOID | G_EVAL);
172 SP = PL_stack_base + mark; PUTBACK;
173 172
174 SvREFCNT_dec (sv_self); 173 SvREFCNT_dec (sv_self);
175 SvREFCNT_dec (sv_status); 174 SvREFCNT_dec (sv_status);
176 175
177 if (sv_events_cache) 176 if (sv_events_cache)
182 if (SvTRUE (ERRSV)) 181 if (SvTRUE (ERRSV))
183 { 182 {
184 PUSHMARK (SP); 183 PUSHMARK (SP);
185 PUTBACK; 184 PUTBACK;
186 call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR); 185 call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR);
187 SP = PL_stack_base + mark; PUTBACK;
188 } 186 }
187
188 SP = PL_stack_base + mark;
189 PUTBACK;
189} 190}
190 191
191static ev_tstamp 192static ev_tstamp
192e_periodic_cb (struct ev_periodic *w, ev_tstamp now) 193e_periodic_cb (struct ev_periodic *w, ev_tstamp now)
193{ 194{
320 const_iv (EV_, CHECK) 321 const_iv (EV_, CHECK)
321 const_iv (EV_, ERROR) 322 const_iv (EV_, ERROR)
322 323
323 const_iv (EV, LOOP_ONESHOT) 324 const_iv (EV, LOOP_ONESHOT)
324 const_iv (EV, LOOP_NONBLOCK) 325 const_iv (EV, LOOP_NONBLOCK)
326 const_iv (EV, UNLOOP_ONE)
327 const_iv (EV, UNLOOP_ALL)
325 328
326 const_iv (EV, METHOD_SELECT) 329 const_iv (EV, METHOD_SELECT)
327 const_iv (EV, METHOD_POLL) 330 const_iv (EV, METHOD_POLL)
328 const_iv (EV, METHOD_EPOLL) 331 const_iv (EV, METHOD_EPOLL)
329 const_iv (EV, METHOD_KQUEUE) 332 const_iv (EV, METHOD_KQUEUE)
484 OUTPUT: 487 OUTPUT:
485 RETVAL 488 RETVAL
486 489
487struct ev_child *child (int pid, SV *cb) 490struct ev_child *child (int pid, SV *cb)
488 ALIAS: 491 ALIAS:
489 check_ns = 1 492 child_ns = 1
490 CODE: 493 CODE:
491 RETVAL = e_new (sizeof (struct ev_child), cb); 494 RETVAL = e_new (sizeof (struct ev_child), cb);
492 ev_child_set (RETVAL, pid); 495 ev_child_set (RETVAL, pid);
493 if (!ix) ev_child_start (RETVAL); 496 if (!ix) ev_child_start (RETVAL);
494 OUTPUT: 497 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines