How to choose a fixed address for shared memory mapping

后端 未结 4 1263
终归单人心
终归单人心 2021-02-13 16:16

I would like to use shared memory between several processes, and would like to be able to keep using raw pointers (and stl containers).

For this purpose, I am using sh

4条回答
  •  梦毁少年i
    2021-02-13 17:07

    Read the address from a configuration file. That will allow easy experimentation, and make it easy to change the address as the circumstances change.

提交回复
热议问题