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

Comparing EV/EV.xs (file contents):
Revision 1.141 by root, Thu Jul 8 00:45:03 2010 UTC vs.
Revision 1.142 by root, Thu Oct 21 15:13:42 2010 UTC

364 const_iv (EV_, UNDEF) 364 const_iv (EV_, UNDEF)
365 const_iv (EV_, NONE) 365 const_iv (EV_, NONE)
366 const_iv (EV_, READ) 366 const_iv (EV_, READ)
367 const_iv (EV_, WRITE) 367 const_iv (EV_, WRITE)
368 const_iv (EV_, IO) 368 const_iv (EV_, IO)
369 const_iv (EV_, TIMEOUT) /* deprecated */
370 const_iv (EV_, TIMER) 369 const_iv (EV_, TIMEOUT)
371 const_iv (EV_, PERIODIC) 370 const_iv (EV_, PERIODIC)
372 const_iv (EV_, SIGNAL) 371 const_iv (EV_, SIGNAL)
373 const_iv (EV_, CHILD) 372 const_iv (EV_, CHILD)
374 const_iv (EV_, STAT) 373 const_iv (EV_, STAT)
375 const_iv (EV_, IDLE) 374 const_iv (EV_, IDLE)
379 const_iv (EV_, FORK) 378 const_iv (EV_, FORK)
380 const_iv (EV_, ASYNC) 379 const_iv (EV_, ASYNC)
381 const_iv (EV_, CUSTOM) 380 const_iv (EV_, CUSTOM)
382 const_iv (EV_, ERROR) 381 const_iv (EV_, ERROR)
383 382
384 const_iv (EV, LOOP_NONBLOCK)
385 const_iv (EV, LOOP_ONESHOT)
386
387 const_iv (EV, UNLOOP_CANCEL) 383 const_iv (EV, RUN_NOWAIT)
388 const_iv (EV, UNLOOP_ONE) 384 const_iv (EV, RUN_ONCE)
385
386 const_iv (EV, BREAK_CANCEL)
387 const_iv (EV, BREAK_ONE)
389 const_iv (EV, UNLOOP_ALL) 388 const_iv (EV, BREAK_ALL)
390
391 const_iv (EV, BACKEND_SELECT) 389 const_iv (EV, BACKEND_SELECT)
392 const_iv (EV, BACKEND_POLL) 390 const_iv (EV, BACKEND_POLL)
393 const_iv (EV, BACKEND_EPOLL) 391 const_iv (EV, BACKEND_EPOLL)
394 const_iv (EV, BACKEND_KQUEUE) 392 const_iv (EV, BACKEND_KQUEUE)
395 const_iv (EV, BACKEND_DEVPOLL) 393 const_iv (EV, BACKEND_DEVPOLL)
402 const_iv (EV, FLAG_NOSIGFD) /* compatibility, always 0 */ 400 const_iv (EV, FLAG_NOSIGFD) /* compatibility, always 0 */
403 const_iv (EV, FLAG_NOINOTIFY) 401 const_iv (EV, FLAG_NOINOTIFY)
404 402
405 const_iv (EV_, VERSION_MAJOR) 403 const_iv (EV_, VERSION_MAJOR)
406 const_iv (EV_, VERSION_MINOR) 404 const_iv (EV_, VERSION_MINOR)
405#if EV_COMPAT3
406 const_iv (EV_, TIMER)
407
408 const_iv (EV, LOOP_NONBLOCK)
409 const_iv (EV, LOOP_ONESHOT)
410
411 const_iv (EV, UNLOOP_CANCEL)
412 const_iv (EV, UNLOOP_ONE)
413 const_iv (EV, UNLOOP_ALL)
414#endif
407 }; 415 };
408 416
409 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 417 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
410 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 418 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
411 419
448 evapi.now = ev_now; 456 evapi.now = ev_now;
449 evapi.now_update = ev_now_update; 457 evapi.now_update = ev_now_update;
450 evapi.suspend = ev_suspend; 458 evapi.suspend = ev_suspend;
451 evapi.resume = ev_resume; 459 evapi.resume = ev_resume;
452 evapi.backend = ev_backend; 460 evapi.backend = ev_backend;
453 evapi.unloop = ev_unloop; 461 evapi.break_ = ev_break;
454 evapi.invoke_pending = ev_invoke_pending; 462 evapi.invoke_pending = ev_invoke_pending;
455 evapi.pending_count = ev_pending_count; 463 evapi.pending_count = ev_pending_count;
456 evapi.verify = ev_verify; 464 evapi.verify = ev_verify;
457 evapi.set_loop_release_cb = ev_set_loop_release_cb; 465 evapi.set_loop_release_cb = ev_set_loop_release_cb;
458 evapi.set_invoke_pending_cb= ev_set_invoke_pending_cb; 466 evapi.set_invoke_pending_cb= ev_set_invoke_pending_cb;
459 evapi.ref = ev_ref; 467 evapi.ref = ev_ref;
460 evapi.unref = ev_unref; 468 evapi.unref = ev_unref;
461 evapi.loop = ev_loop; 469 evapi.run = ev_run;
462 evapi.once = ev_once; 470 evapi.once = ev_once;
463 evapi.io_start = ev_io_start; 471 evapi.io_start = ev_io_start;
464 evapi.io_stop = ev_io_stop; 472 evapi.io_stop = ev_io_stop;
465 evapi.timer_start = ev_timer_start; 473 evapi.timer_start = ev_timer_start;
466 evapi.timer_stop = ev_timer_stop; 474 evapi.timer_stop = ev_timer_stop;
550 558
551unsigned int ev_backend () 559unsigned int ev_backend ()
552 C_ARGS: evapi.default_loop 560 C_ARGS: evapi.default_loop
553 561
554void ev_verify () 562void ev_verify ()
563 ALIAS:
564 loop_verify = 1
555 C_ARGS: evapi.default_loop 565 C_ARGS: evapi.default_loop
556 566
557unsigned int ev_iteration () 567unsigned int ev_iteration ()
568 ALIAS:
569 loop_count = 1
558 C_ARGS: evapi.default_loop 570 C_ARGS: evapi.default_loop
559 571
560unsigned int ev_depth () 572unsigned int ev_depth ()
573 ALIAS:
574 loop_depth = 1
561 C_ARGS: evapi.default_loop 575 C_ARGS: evapi.default_loop
562 576
563void ev_set_io_collect_interval (NV interval) 577void ev_set_io_collect_interval (NV interval)
564 C_ARGS: evapi.default_loop, interval 578 C_ARGS: evapi.default_loop, interval
565 579
566void ev_set_timeout_collect_interval (NV interval) 580void ev_set_timeout_collect_interval (NV interval)
567 C_ARGS: evapi.default_loop, interval 581 C_ARGS: evapi.default_loop, interval
568 582
569void ev_loop (int flags = 0) 583void ev_run (int flags = 0)
584 ALIAS:
585 loop = 1
570 C_ARGS: evapi.default_loop, flags 586 C_ARGS: evapi.default_loop, flags
571 587
572void ev_unloop (int how = EVUNLOOP_ONE) 588void ev_break (int how = EVBREAK_ONE)
589 ALIAS:
590 unloop = 1
573 C_ARGS: evapi.default_loop, how 591 C_ARGS: evapi.default_loop, how
574 592
575void ev_feed_fd_event (int fd, int revents = EV_NONE) 593void ev_feed_fd_event (int fd, int revents = EV_NONE)
576 C_ARGS: evapi.default_loop, fd, revents 594 C_ARGS: evapi.default_loop, fd, revents
577 595
1290 if (loop != evapi.default_loop) /* global destruction sucks */ 1308 if (loop != evapi.default_loop) /* global destruction sucks */
1291 ev_loop_destroy (loop); 1309 ev_loop_destroy (loop);
1292 1310
1293void ev_loop_fork (struct ev_loop *loop) 1311void ev_loop_fork (struct ev_loop *loop)
1294 1312
1313NV ev_now (struct ev_loop *loop)
1314
1315void ev_now_update (struct ev_loop *loop)
1316
1317void ev_suspend (struct ev_loop *loop)
1318
1319void ev_resume (struct ev_loop *loop)
1320
1321void ev_set_io_collect_interval (struct ev_loop *loop, NV interval)
1322
1323void ev_set_timeout_collect_interval (struct ev_loop *loop, NV interval)
1324
1325unsigned int ev_backend (struct ev_loop *loop)
1326
1295void ev_verify (struct ev_loop *loop) 1327void ev_verify (struct ev_loop *loop)
1296 1328 ALIAS:
1297NV ev_now (struct ev_loop *loop) 1329 loop_verify = 1
1298
1299void ev_now_update (struct ev_loop *loop)
1300
1301void ev_suspend (struct ev_loop *loop)
1302
1303void ev_resume (struct ev_loop *loop)
1304
1305void ev_set_io_collect_interval (struct ev_loop *loop, NV interval)
1306
1307void ev_set_timeout_collect_interval (struct ev_loop *loop, NV interval)
1308
1309unsigned int ev_backend (struct ev_loop *loop)
1310 1330
1311unsigned int ev_iteration (struct ev_loop *loop) 1331unsigned int ev_iteration (struct ev_loop *loop)
1332 ALIAS:
1333 loop_count = 1
1312 1334
1313unsigned int ev_depth (struct ev_loop *loop) 1335unsigned int ev_depth (struct ev_loop *loop)
1336 ALIAS:
1337 loop_depth = 1
1314 1338
1315void ev_loop (struct ev_loop *loop, int flags = 0) 1339void ev_run (struct ev_loop *loop, int flags = 0)
1340 ALIAS:
1341 loop = 1
1316 1342
1317void ev_unloop (struct ev_loop *loop, int how = 1) 1343void ev_break (struct ev_loop *loop, int how = 1)
1344 ALIAS:
1345 unloop = 1
1318 1346
1319void ev_feed_fd_event (struct ev_loop *loop, int fd, int revents = EV_NONE) 1347void ev_feed_fd_event (struct ev_loop *loop, int fd, int revents = EV_NONE)
1320 1348
1321unsigned int ev_pending_count (struct ev_loop *loop) 1349unsigned int ev_pending_count (struct ev_loop *loop)
1322 1350

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines