OSDN Git Service

fifo: Add support for multi-process
authorGlenn Kasten <gkasten@google.com>
Fri, 2 Sep 2016 20:54:59 +0000 (13:54 -0700)
committerGlenn Kasten <gkasten@google.com>
Mon, 3 Oct 2016 17:06:27 +0000 (10:06 -0700)
commitdc1ff1f1ee8bdd6baccd558bd4e279ffbbe01400
tree4ab8c59d72f6e9f708dcbdab5b561353a103bed1
parent55551fe54ab1d9ed6eb82acbc87dd571b8f2cf2f
fifo: Add support for multi-process

For multi-process, the indices are allocated in separate shared memory.
This permits the buffer, write index, and throttling read index to each
have their own protection.

By default, the indices are allocated within the object to retain
API compatibility for the single-process case.

Test: in next CL
Change-Id: I5fae59169dbf73e8e38bf0eba0dcf907da2f8679
audio_utils/fifo.cpp
audio_utils/include/audio_utils/fifo.h