Move memory mapping setup to a function

So we don't need to repeat this twice.
This commit is contained in:
Robbert van der Helm
2021-07-18 22:40:04 +02:00
parent a02dcbdb5a
commit 3c14f0391b
2 changed files with 28 additions and 24 deletions
+5
View File
@@ -181,6 +181,11 @@ class AudioShmBuffer {
Config config;
private:
/**
* Resize the shared memory object, and set up the memory mapping.
*/
void setup_mapping();
boost::interprocess::shared_memory_object shm;
boost::interprocess::mapped_region buffer;