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.74 by root, Fri Nov 23 05:13:48 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, BACKEND_SELECT)
327 const_iv (EV, METHOD_POLL) 330 const_iv (EV, BACKEND_POLL)
328 const_iv (EV, METHOD_EPOLL) 331 const_iv (EV, BACKEND_EPOLL)
329 const_iv (EV, METHOD_KQUEUE) 332 const_iv (EV, BACKEND_KQUEUE)
330 const_iv (EV, METHOD_DEVPOLL) 333 const_iv (EV, BACKEND_DEVPOLL)
331 const_iv (EV, METHOD_PORT) 334 const_iv (EV, BACKEND_PORT)
332 const_iv (EV, FLAG_AUTO) 335 const_iv (EV, FLAG_AUTO)
333 const_iv (EV, FLAG_NOENV) 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; )
354 evapi.ver = EV_API_VERSION; 357 evapi.ver = EV_API_VERSION;
355 evapi.rev = EV_API_REVISION; 358 evapi.rev = EV_API_REVISION;
356 evapi.sv_fileno = sv_fileno; 359 evapi.sv_fileno = sv_fileno;
357 evapi.sv_signum = sv_signum; 360 evapi.sv_signum = sv_signum;
358 evapi.now = ev_now; 361 evapi.now = ev_now;
359 evapi.method = ev_method; 362 evapi.backend = ev_backend;
360 evapi.unloop = ev_unloop; 363 evapi.unloop = ev_unloop;
361 evapi.time = ev_time; 364 evapi.time = ev_time;
362 evapi.loop = ev_loop; 365 evapi.loop = ev_loop;
363 evapi.once = ev_once; 366 evapi.once = ev_once;
364 evapi.io_start = ev_io_start; 367 evapi.io_start = ev_io_start;
387#endif 390#endif
388} 391}
389 392
390NV ev_now () 393NV ev_now ()
391 394
392int ev_method () 395unsigned int ev_backend ()
393 396
394NV ev_time () 397NV ev_time ()
395 398
396int ev_default_loop (int methods = EVFLAG_AUTO) 399unsigned int ev_default_loop (unsigned int flags = ev_supported_backends ())
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