Wykres commitów

38 Commity (afa61925018dfacb7e031fc395c21ea857c2d00e)

Autor SHA1 Wiadomość Data
Reid Wagner b54987bd14 select: Convert float timeout to int with math.ceil.
In CPython, timeout is a float and the value rounded up to the
nearest millisecond.
2017-10-29 10:01:00 +03:00
Paul Sokolovsky 1bae9c92c4 select: Release 0.3. 2017-10-21 21:28:43 +03:00
Reid Wagner c09b364253 select: epoll: Recompute timeout after EINTR.
As detailed in PEP 475, timeout should be recomputed before retrying
the interrupted system call.
2017-10-21 21:27:57 +03:00
Paul Sokolovsky c8f9cf1dca select: epoll.poll() takes timeout in seconds.
That's inconsistent with poll.poll(), but that's how CPython has it.
2017-10-21 00:40:50 +03:00
Paul Sokolovsky 56434974a7 select: Release 0.2. 2017-10-07 01:14:30 +03:00
Paul Sokolovsky f5bc4d8ea3 select: Re-export uselect module contents (poll() and related). 2017-10-07 01:13:28 +03:00
Reid Wagner 423e6c6a53 select: Add POLLPRI mask.
Value is per Linux.
2017-10-07 01:10:28 +03:00
Paul Sokolovsky 417774d205 select: example_epoll.py: Rename from test_epoll.py. 2017-09-29 10:18:54 -07:00
Paul Sokolovsky dfe4dee62a all: setup.py: New releases for gzip 4k conversion. 2016-10-11 06:47:01 +03:00
Paul Sokolovsky 65fb3707ba all: metadata.txt: Bump version for gzip 4k conversion. 2016-10-11 06:46:12 +03:00
Paul Sokolovsky daaffd7edb select: Switch to ffilib. 2015-09-02 00:15:05 +03:00
Paul Sokolovsky 4a1961d465 select: Release 0.1.5. 2015-08-30 02:47:10 +03:00
Paul Sokolovsky 0a6710ecd1 select: Update for os.errno_ refactor. 2015-08-30 02:47:10 +03:00
Paul Sokolovsky e75f34aa7d select: Release 0.1.4. 2015-06-20 20:00:33 +03:00
Delio Brignoli 675ad2cbd8 select: add EPOLLERR, EPOLLHUP, EPOLLRDHUP constants 2015-06-20 19:59:07 +03:00
Paul Sokolovsky 7dcfc3165a select: Update for builtin "struct" renamed to "ustruct". 2015-05-07 00:33:48 +03:00
Paul Sokolovsky c2d1feb854 select: Release 0.1.2. 2015-03-08 14:31:37 +02:00
Paul Sokolovsky 6c29bfbf57 select: Handle EINTR. 2015-03-08 14:31:06 +02:00
Paul Sokolovsky 0b53579d85 select: Clarify comment. 2015-01-19 23:24:23 +02:00
Paul Sokolovsky 3ce9d1b5e7 select: Release 0.1.1. 2014-11-04 02:57:19 +02:00
Paul Sokolovsky 89f3b75b72 select: Add defines for EPOLLONESHOT & EPOLLET. 2014-11-03 00:40:33 +02:00
Paul Sokolovsky 165fbbd768 select: Add yet another workaround for struct epoll_event, this time for x86_64.
So, it's now clear that dealing with this struct should be rather moved on C side.
2014-09-06 19:36:28 +03:00
Paul Sokolovsky 7bc0c0a458 select: Version 0.0.8. 2014-08-13 00:56:23 +03:00
Paul Sokolovsky 8274c56925 select: Work around epoll_event field alignment variation. 2014-08-10 23:10:48 +03:00
Paul Sokolovsky d32312e2d8 select: Depend on _libc. 2014-06-21 14:59:35 +03:00
Paul Sokolovsky 286ead8b99 select: Convert to metadata.txt. 2014-05-31 16:18:41 +03:00
Paul Sokolovsky f4d921c74f select: Fix conflict between errno var and module. 2014-05-31 16:18:34 +03:00
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