Linux::Event examples
These examples demonstrate the current Linux::Event API. The low-numbered examples are ordered from basic loop features to more advanced composition patterns. The 90-series files are manual benchmarks and regression runners.
Basic and feature examples
01-after.pl- relative timer02-at.pl- absolute monotonic timer deadline03-watch-pipe.pl- readiness watch on a pipe04-watch-replace.pl- replacing an existing watcher for the same file descriptor05-watch-oneshot.pl- one-shot watcher behavior06-unwatch-safe.pl- idempotent unwatch and watcher cancellation07-signal.pl- signalfd signal delivery08-waker-thread.pl- eventfd wakeup from another thread09-waker-fork-pipe.pl- eventfd wakeup with a forked producer and separate payload pipe10-pid.pl- pidfd child exit notification
Manual benchmarks and regression runners
90-bench-oneshot.pl- pipe readability throughput benchmark91-stress-oneshot-edge-safe.pl- edge-triggered one-shot stress runner92-linux-epoll-oneshot-rearm.pl- direct Linux::Epoll one-shot rearm check93-regress-stop-no-backend-wait.pl- stop-before-backend-wait regression runner94-regress-epoll-oneshot-rearm.pl- Linux::Event backend one-shot rearm regression runner
Run all examples with:
perl examples/all.pl