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

Comparing EV/EV.xs (file contents):
Revision 1.67 by root, Mon Nov 12 21:51:14 2007 UTC vs.
Revision 1.73 by root, Fri Nov 23 05:00:44 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{
323 const_iv (EV, LOOP_ONESHOT) 324 const_iv (EV, LOOP_ONESHOT)
324 const_iv (EV, LOOP_NONBLOCK) 325 const_iv (EV, LOOP_NONBLOCK)
325 const_iv (EV, UNLOOP_ONE) 326 const_iv (EV, UNLOOP_ONE)
326 const_iv (EV, UNLOOP_ALL) 327 const_iv (EV, UNLOOP_ALL)
327 328
328 const_iv (EV, METHOD_SELECT) 329 const_iv (EV, BACKEND_SELECT)
329 const_iv (EV, METHOD_POLL) 330 const_iv (EV, BACKEND_POLL)
330 const_iv (EV, METHOD_EPOLL) 331 const_iv (EV, BACKEND_EPOLL)
331 const_iv (EV, METHOD_KQUEUE) 332 const_iv (EV, BACKEND_KQUEUE)
332 const_iv (EV, METHOD_DEVPOLL) 333 const_iv (EV, BACKEND_DEVPOLL)
333 const_iv (EV, METHOD_PORT) 334 const_iv (EV, BACKEND_PORT)
334 const_iv (EV, FLAG_AUTO) 335 const_iv (EV, FLAG_AUTO)
335 const_iv (EV, FLAG_NOENV) 336 const_iv (EV, FLAG_NOENV)
336 }; 337 };
337 338
338 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; )
356 evapi.ver = EV_API_VERSION; 357 evapi.ver = EV_API_VERSION;
357 evapi.rev = EV_API_REVISION; 358 evapi.rev = EV_API_REVISION;
358 evapi.sv_fileno = sv_fileno; 359 evapi.sv_fileno = sv_fileno;
359 evapi.sv_signum = sv_signum; 360 evapi.sv_signum = sv_signum;
360 evapi.now = ev_now; 361 evapi.now = ev_now;
361 evapi.method = ev_method; 362 evapi.backend = ev_backend;
362 evapi.unloop = ev_unloop; 363 evapi.unloop = ev_unloop;
363 evapi.time = ev_time; 364 evapi.time = ev_time;
364 evapi.loop = ev_loop; 365 evapi.loop = ev_loop;
365 evapi.once = ev_once; 366 evapi.once = ev_once;
366 evapi.io_start = ev_io_start; 367 evapi.io_start = ev_io_start;
393 394
394int ev_method () 395int ev_method ()
395 396
396NV ev_time () 397NV ev_time ()
397 398
398int ev_default_loop (int methods = EVFLAG_AUTO) 399int ev_default_loop (int methods = ev_supported_methods ())
399 400
400void ev_loop (int flags = 0) 401void ev_loop (int flags = 0)
401 402
402void ev_unloop (int how = 1) 403void ev_unloop (int how = 1)
403 404
486 OUTPUT: 487 OUTPUT:
487 RETVAL 488 RETVAL
488 489
489struct ev_child *child (int pid, SV *cb) 490struct ev_child *child (int pid, SV *cb)
490 ALIAS: 491 ALIAS:
491 check_ns = 1 492 child_ns = 1
492 CODE: 493 CODE:
493 RETVAL = e_new (sizeof (struct ev_child), cb); 494 RETVAL = e_new (sizeof (struct ev_child), cb);
494 ev_child_set (RETVAL, pid); 495 ev_child_set (RETVAL, pid);
495 if (!ix) ev_child_start (RETVAL); 496 if (!ix) ev_child_start (RETVAL);
496 OUTPUT: 497 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines