diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2016-03-13 00:51:12 +0200 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2016-04-02 05:36:52 +0200 |
commit | 9bda6e344a67a9df245bd679706c9a0291b30d08 (patch) | |
tree | 739c786caff8c3b38437f56d969f125b79a3ed2f /src/pulsecore/cpu-x86.h | |
parent | 1f5e72264ea3ccc23aa34460874c8581909d0e89 (diff) | |
download | pulseaudio-9bda6e344a67a9df245bd679706c9a0291b30d08.tar.gz |
pulsecore: Reference count mempools
In future commits, server-wide SHMs will be replaced with per-client
ones that will be dynamically created and freed according to clients
connections open and close.
Meanwhile, current PA design does not guarantee that the per-client
mempool blocks are referenced only by client-specific objects.
Thus reference count the pools and let each memblock inside the pool
itself, or just attached to it, increment the pool's refcount upon
allocation. This way, per-client mempools will only be freed when no
further component in the system holds any references to its blocks.
DiscussionLink: https://goo.gl/qesVMV
Suggested-by: Tanu Kaskinen <tanuk@iki.fi>
Suggested-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Diffstat (limited to 'src/pulsecore/cpu-x86.h')
0 files changed, 0 insertions, 0 deletions