tree: 382ebf3dbc48b7cd4b593d9aba00e2817b806243 [path history] [tgz]
  1. FifoBuffer.cpp
  2. FifoBuffer.h
  3. FifoController.h
  4. FifoControllerBase.cpp
  5. FifoControllerBase.h
  6. FifoControllerIndirect.h

Simple atomic FIFO for passing data between threads or processes. This does not require mutexes.

One thread modifies the readCounter and the other thread modifies the writeCounter.

TODO The internal low-level implementation might be merged in some form with audio_utils fifo and/or FMQ [after confirming that requirements are met]. The higher-levels parts related to AAudio use of the FIFO such as API, fds, relative location of indices and data buffer, mapping, allocation of memmory will probably be kept as-is.