Paul Sokolovsky
f48221f6c0
select: Need to keep parallel mapping of fd -> callback obj on uPy side.
...
Even despite epoll allows us to map fd onto any object, we need to keep
parallel bookkeeping on Python side, to: 1) keep associated object from
being garbage collection; 2) to be able to release associated object back
to GC when we finished watching fd.
2014-05-03 20:13:36 +03:00
Paul Sokolovsky
f94297ff86
select: Add Epoll.close().
2014-05-01 10:28:43 +03:00
Paul Sokolovsky
84f3cbb7cc
select: Add epoll.unregister() method.
2014-04-24 01:04:32 +03:00
Paul Sokolovsky
56454eba33
all: Tighten up typecodes for FFI module.
2014-04-22 00:39:21 +03:00
Paul Sokolovsky
4016f0664c
select: Use symbolic constant from errno module.
2014-04-22 00:33:13 +03:00
Paul Sokolovsky
52ac4308f7
select: epoll.register(): Handle case of fd have been already registered.
...
Is this correct enough? Certainly, Python's epoll should not be fire-once?
2014-04-20 06:20:57 +03:00
Paul Sokolovsky
1cc01656f7
select: Actually implement extended arg to epoll.register().
...
Allow to pass arbitrary Python objects as "callback data" to epoll, which
will be then returned when activity on fd detected.
2014-04-20 06:20:57 +03:00
Paul Sokolovsky
b149831264
select: epoll: Accept sizehint param.
2014-04-20 06:20:57 +03:00
Paul Sokolovsky
6cac26f078
select: Add setup metadata.
2014-04-19 21:01:44 +03:00
Paul Sokolovsky
7251b8f820
select: Add simple epoll test.
2014-04-19 20:37:00 +03:00
Paul Sokolovsky
d8e0383f55
select: Add initial epoll implementation.
...
epoll is chosen as most efficient on Linux and FFI-friendly.
2014-04-19 20:36:23 +03:00