Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

moduselect.c

Blame
    • Paul Sokolovsky's avatar
      c1481bb0
      unix/moduselect: Implement "one-shot" flag for poll.poll(). · c1481bb0
      Paul Sokolovsky authored
      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.
      c1481bb0
      History
      unix/moduselect: Implement "one-shot" flag for poll.poll().
      Paul Sokolovsky authored
      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.