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

Comparing EV/EV.xs (file contents):
Revision 1.64 by root, Mon Nov 12 00:31:08 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_AUTO)
327 const_iv (EV, METHOD_SELECT) 329 const_iv (EV, METHOD_SELECT)
328 const_iv (EV, METHOD_POLL) 330 const_iv (EV, METHOD_POLL)
329 const_iv (EV, METHOD_EPOLL) 331 const_iv (EV, METHOD_EPOLL)
330 const_iv (EV, METHOD_KQUEUE) 332 const_iv (EV, METHOD_KQUEUE)
331 const_iv (EV, METHOD_DEVPOLL) 333 const_iv (EV, METHOD_DEVPOLL)
332 const_iv (EV, METHOD_PORT) 334 const_iv (EV, METHOD_PORT)
333 const_iv (EV, METHOD_ANY) 335 const_iv (EV, FLAG_AUTO)
336 const_iv (EV, FLAG_NOENV)
334 }; 337 };
335 338
336 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 339 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
337 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 340 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
338 341
391 394
392int ev_method () 395int ev_method ()
393 396
394NV ev_time () 397NV ev_time ()
395 398
396int ev_default_loop (int methods = EVMETHOD_AUTO) 399int ev_default_loop (int methods = EVFLAG_AUTO)
397 400
398void ev_loop (int flags = 0) 401void ev_loop (int flags = 0)
399 402
400void ev_unloop (int how = 1) 403void ev_unloop (int how = 1)
401 404
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