summaryrefslogtreecommitdiffstatshomepage
path: root/unix/moduselect.c
Commit message (Collapse)AuthorAge
* py: Change struct and macro for builtin fun so they can be type checked.Damien George2016-01-03
|
* unix/moduselect: Make configurable with MICROPY_PY_USELECT.Paul Sokolovsky2015-12-13
|
* unix/moduselect: Implement "one-shot" flag for poll.poll().Paul Sokolovsky2015-12-11
| | | | | | | | | 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.
* unix/moduselect: register(): Allow to call with duplicate file descriptor.Paul Sokolovsky2015-12-05
| | | | | | | | | | | Per CPython docs, "Registering a file descriptor that’s already registered is not an error, and has the same effect as registering the descriptor exactly once." https://docs.python.org/3/library/select.html#select.poll.register That's somewhat ambiguous, what's implemented here is that if fd si not yet registered, it is registered. Otherwise, the effect is equivalent to modify() method.
* unix/moduselect: Support growing of poll array.Paul Sokolovsky2015-11-30
|
* py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR.Damien George2015-11-29
| | | | | | | | | This allows the mp_obj_t type to be configured to something other than a pointer-sized primitive type. This patch also includes additional changes to allow the code to compile when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of mp_uint_t, and various casts.
* py: Add MP_ROM_* macros and mp_rom_* types and use them.Damien George2015-11-29
|
* unix/moduselect: poll.register(): Reuse freed entries in poll array.Paul Sokolovsky2015-11-29
|
* unix/moduselect: Fix bug in poll.poll() scanning loop.Paul Sokolovsky2015-11-28
|
* unix/moduselect: Initialise variable so can compile in non-debug mode.Damien George2015-11-20
|
* unix: Add "uselect" module, with poll() function.Paul Sokolovsky2015-11-17
Underlyingly, uses standard POSIX poll() for portability.