diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-12-31 00:07:18 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-12-31 00:07:18 +0300 |
commit | 093a8f5fa2ff89959d8300032a837060827ac084 (patch) | |
tree | 092917c7c6d428e61f6f048b96d262af67931320 /esp8266/main.c | |
parent | d377c837946dc7476918dcda1580467396e5a153 (diff) | |
download | micropython-093a8f5fa2ff89959d8300032a837060827ac084.tar.gz micropython-093a8f5fa2ff89959d8300032a837060827ac084.zip |
unix/moduselect: If file object passed to .register(), return it in .poll().
This makes unix "uselect" compatible with baremetal "uselect". Previosuly,
unix version accepted file/socket objects, but internally converted that
to file descriptors, and that's what .poll() returned. To acheive new
behavior, file-like objects are stored internally in an array, in addition
to existing array of struct pollfd. This array is created only on first
case of file-like object being passed to .register(). If only raw fd's are
passed, there will be no additional memory used comparing to the original
implementation.
Diffstat (limited to 'esp8266/main.c')
0 files changed, 0 insertions, 0 deletions