mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
Make the shared memory segment size configurable
This is useful only on systems where memory overcommit is not available or disabled.
This commit is contained in:
parent
a84b72bf96
commit
79ad4e63f6
23 changed files with 99 additions and 37 deletions
|
|
@ -78,9 +78,9 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
const char txt[] = "This is a test!";
|
||||
|
||||
pool_a = pa_mempool_new(1);
|
||||
pool_b = pa_mempool_new(1);
|
||||
pool_c = pa_mempool_new(1);
|
||||
pool_a = pa_mempool_new(TRUE, 0);
|
||||
pool_b = pa_mempool_new(TRUE, 0);
|
||||
pool_c = pa_mempool_new(TRUE, 0);
|
||||
|
||||
pa_mempool_get_shm_id(pool_a, &id_a);
|
||||
pa_mempool_get_shm_id(pool_b, &id_b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue