gitpan / io-async-loop-ppoll Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for IO-Async-Loop-Ppoll
Home Page: http://metacpan.org/release/IO-Async-Loop-Ppoll
License: Other
Read-only release history for IO-Async-Loop-Ppoll
Home Page: http://metacpan.org/release/IO-Async-Loop-Ppoll
License: Other
NAME `IO::Async::Loop::Ppoll' - use `IO::Async' with `ppoll(2)' SYNOPSIS use IO::Async::Loop::Ppoll; my $loop = IO::Async::Loop::Ppoll->new(); $loop->add( ... ); $loop->add( IO::Async::Signal->new( name =< 'HUP', on_receipt => sub { ... }, ) ); $loop->loop_forever(); DESCRIPTION This subclass of `IO::Async::Loop::Poll' uses an `IO::Ppoll' object instead of a `IO::Poll' to perform read-ready and write-ready tests so that they can be mixed with signal handling. The `ppoll()' system call atomically switches the process's signal mask, performs a wait exactly as `poll()' would, then switches it back. This allows a process to block the signals it cares about, but switch in an empty signal mask during the poll, allowing it to handle file IO and signals concurrently. CONSTRUCTOR $loop = IO::Async::Loop::Ppoll->new( %args ) This function returns a new instance of a `IO::Async::Loop::Ppoll' object. It takes the following named arguments: `poll' The `IO::Ppoll' object to use for notification. Optional; if a value is not given, a new `IO::Ppoll' object will be constructed. METHODS As this is a subclass of IO::Async::Loop::Poll, all of its methods are inherited. Expect where noted below, all of the class's methods behave identically to `IO::Async::Loop::Poll'. $count = $loop->loop_once( $timeout ) This method calls the `poll()' method on the stored `IO::Ppoll' object, passing in the value of `$timeout', and processes the results of that call. It returns the total number of `IO::Async::Notifier' callbacks invoked, or `undef' if the underlying `poll()' method returned an error. If the `poll()' was interrupted by a signal, then 0 is returned instead. SEE ALSO * IO::Ppoll - Object interface to Linux's `ppoll()' call * IO::Async::Loop::Poll - a set using an `IO::Poll' object AUTHOR Paul Evans <[email protected]>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.