lundi 9 mars 2015

Unmapping boost shared memory


Vote count:

0




I have a code where the boost shared memory is used by a single writer and many readers.


The writer creates the shared memory, opens it with write permissions, and writes data to it from time to time.


Readers come and go all the time, each reader maps to the shared memory with read_only privileges, does what it does and than calls remove.


The problem seems to be that when a reader finishes doing whatever it is doing. It calls remove, however, remove deletes the shared_memory file for new readers and they cannot map to it.


My question is, how does a process detach from the shared memory, without removing it? There does not seem to be a detach functionality in the boost library.



asked 14 secs ago







Unmapping boost shared memory

Aucun commentaire:

Enregistrer un commentaire