|
Boost Users : |
From: M L (abovetauceti_at_[hidden])
Date: 2023-01-10 10:54:41
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net