summaryrefslogtreecommitdiffstatshomepage
path: root/py/objclosure.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-11 23:36:29 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-11 23:36:37 +0200
commitc1481bb0ab3c7aa53963e15113dab12dca73693d (patch)
tree391790b12ce28242f79ab076d0197a8afeb9e4bf /py/objclosure.c
parent4651c4381e2c3c0ce3089b1701ef7439f0619b46 (diff)
downloadmicropython-c1481bb0ab3c7aa53963e15113dab12dca73693d.tar.gz
micropython-c1481bb0ab3c7aa53963e15113dab12dca73693d.zip
unix/moduselect: Implement "one-shot" flag for poll.poll().
After an I/O event is triggered for fd, event flags are automatically reset, so no further events are reported until new event flags are set. This is an optimization for uasyncio, required to account for coroutine semantics: each coroutine issues explicit read/write async call, and once that trigger, no events should be reported to coroutine, unless it again explicitly requests it. One-shot mode saves one linear scan over the poll array.
Diffstat (limited to 'py/objclosure.c')
0 files changed, 0 insertions, 0 deletions