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
      16a3534a
      unix/moduselect: Implement ipoll() method with no-allocation policy. · 16a3534a
      Paul Sokolovsky authored
      ipoll() allows to poll streams without allocating any memory: this method
      returns an iterator (a poll object itself), and the iterator yields
      preallocated "callee-owned tuple" with polling results for each active
      stream. The only operation a caller is allowed to do with this tuple is
      extracting values from it (storing the tuple as a whole somewhere is
      not allowed).
      16a3534a
      History
      unix/moduselect: Implement ipoll() method with no-allocation policy.
      Paul Sokolovsky authored
      ipoll() allows to poll streams without allocating any memory: this method
      returns an iterator (a poll object itself), and the iterator yields
      preallocated "callee-owned tuple" with polling results for each active
      stream. The only operation a caller is allowed to do with this tuple is
      extracting values from it (storing the tuple as a whole somewhere is
      not allowed).