esp-idf/examples/system/eventfd
2021-04-15 15:18:59 +08:00
..
main vfs: add example for eventfd 2021-04-15 15:18:59 +08:00
CMakeLists.txt vfs: add example for eventfd 2021-04-15 15:18:59 +08:00
Makefile vfs: add example for eventfd 2021-04-15 15:18:59 +08:00
README.md vfs: add example for eventfd 2021-04-15 15:18:59 +08:00

eventfd example

The example demonstrates the use of eventfd() to collect events from other tasks and ISRs in a select() based main loop. The example starts two tasks and installs a timer interrupt handler:

  1. The first task writes to the first eventfd periodically.
  2. The timer interrupt handler writes to the second eventfd.
  3. The second task collects the event from two fds with a select() loop.

See the README.md file in the upper level 'examples' directory for more information about examples.