Fwd: [boost.interprocess] Are there pitfalls using managed_shared_memory?
10 Jan
2023
10 Jan
'23
10:54 a.m.
Are there common pitfalls when using boost::interprocess::managed_shared_memory in order to share a variable in the following way (Cpp,Windows OS)? managed_shared_memory managed_shm(open_or_create, "my_shm", 1024); // Write int *i = managed_shm.construct<int>("Integer")(42); // Read std::pair<int*, std::size_t> p = managed_shm.find<int>("Integer"); - Is the shared memory deleted, when the application is stopped? - Do other programs or services can bear with this method without crashing? -is there a danger that shared memory could be accumulated with some kind of overflow? Question: what does one have to consider when using this method? Thanks for help.
619
Age (days ago)
619
Last active (days ago)
0 comments
1 participants
participants (1)
-
M L