Can QSharedMemory be assumed to stay in physical memory?
-
Or, can I prevent shared memory from being paged out, so a pointer to the memory is constant? (Or is this the case anyway?)
Using mlock() for example?
Thanks,
Thomas -
The pointer is constant, independent of whether the os pages out the memory or not.
-
You can't assume it stays in physical memory (so: mlock it) -- that doesn't imply that the address of the shared segment changes.
-
Thank you for your helpful answers.