xref: /aosp_15_r20/frameworks/av/media/libaaudio/src/fifo/README.md (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1Simple atomic FIFO for passing data between threads or processes.
2This does not require mutexes.
3
4One thread modifies the readCounter and the other thread modifies the writeCounter.
5
6TODO The internal low-level implementation might be merged in some form with audio_utils fifo
7and/or FMQ [after confirming that requirements are met].
8The higher-levels parts related to AAudio use of the FIFO such as API, fds, relative
9location of indices and data buffer, mapping, allocation of memmory will probably be kept as-is.
10