|
Boost Users : |
Subject: Re: [Boost-users] [Interprocess] [file_mapping] is there any way to avoid writing a modified file to disc?
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-12-07 10:13:27
El 07/12/2011 14:44, Dean Michael Berris escribió:
> Actually, I just checked the docs: it seems you want the
> 'copy_on_write' mode which combines PROT_WRITE|PROT_READ and
> MAP_PRIVATE. This allows you to make changes in place to the memory
> region without having the changes reflected to the original file.
Yes, copy_on_write should work. When a page is modified the OS creates a
new page for you but other process sees your changes (well, I guess they
can end in the page file).
Best,
Ion
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