mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
pulsecore: Cache daemon shm size inside pa_core
The daemon `shm-size-bytes' configuration value was read, and then directly used, for creating the initial server-wide SHM files. This is fine for now, but soon, such server-wide SHMs will be replaced with per-client SHM files that will be dynamically created and deleted according to clients open and close. Thus, appropriately cache this configuration value. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
This commit is contained in:
parent
0f48b7c823
commit
1f5e72264e
2 changed files with 6 additions and 0 deletions
|
|
@ -181,6 +181,11 @@ struct pa_core {
|
|||
The rw_mempool is used for data writable by both server and client (and
|
||||
can be NULL in some cases). */
|
||||
pa_mempool *mempool, *rw_mempool;
|
||||
|
||||
/* Shared memory size, as specified either by daemon configuration
|
||||
* or PA daemon defaults (~ 64 MiB). */
|
||||
size_t shm_size;
|
||||
|
||||
pa_silence_cache silence_cache;
|
||||
|
||||
pa_time_event *exit_event;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue