summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/main.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-31 00:07:18 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-31 00:07:18 +0300
commit093a8f5fa2ff89959d8300032a837060827ac084 (patch)
tree092917c7c6d428e61f6f048b96d262af67931320 /esp8266/main.c
parentd377c837946dc7476918dcda1580467396e5a153 (diff)
downloadmicropython-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