mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-20 06:59:53 -05:00
pulsecore: Transform pa_mempool_new() into a factory method
Soon we're going to have three types of memory pools: POSIX shm_open() pools, memfd memfd_create() ones, and privately malloc()-ed pools. Thus introduce annotations for the memory types supported and change pa_mempool_new() into a factory method based on required memory. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
This commit is contained in:
parent
211a520543
commit
b88acd0266
18 changed files with 97 additions and 37 deletions
|
|
@ -51,7 +51,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
pa_log_set_level(PA_LOG_DEBUG);
|
||||
|
||||
pa_assert_se(pool = pa_mempool_new(false, 0));
|
||||
pa_assert_se(pool = pa_mempool_new(PA_MEM_TYPE_PRIVATE, 0));
|
||||
|
||||
for (i = 0; maps[i].channels > 0; i++)
|
||||
for (j = 0; maps[j].channels > 0; j++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue