diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-13 00:23:23 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-13 00:23:23 +0300 |
commit | 16a3534ad44e7de1b8c54bbe1f5a01d3636db780 (patch) | |
tree | 8a1cc4721c01540ab8b2d06e658ca78c21af2435 /stmhal/pybthread.c | |
parent | aac2db9aafbaaa7cea82be5683b69833859200f5 (diff) | |
download | micropython-16a3534ad44e7de1b8c54bbe1f5a01d3636db780.tar.gz micropython-16a3534ad44e7de1b8c54bbe1f5a01d3636db780.zip |
unix/moduselect: Implement ipoll() method with no-allocation policy.
ipoll() allows to poll streams without allocating any memory: this method
returns an iterator (a poll object itself), and the iterator yields
preallocated "callee-owned tuple" with polling results for each active
stream. The only operation a caller is allowed to do with this tuple is
extracting values from it (storing the tuple as a whole somewhere is
not allowed).
Diffstat (limited to 'stmhal/pybthread.c')
0 files changed, 0 insertions, 0 deletions