
23 May
2006
23 May
'06
5:13 p.m.
Slava, Alex wrote:
On 5/22/06, Tomas Puverle <Tomas.Puverle@morganstanley.com> wrote:
Finally, it would be nice to be able to specify some of the flags that memory mapped files can take when they are being opened, such as MAP_PRIVATE, MAP_ANON, MAP_FIXED etc.
1. Windows doesn't have such flags
While the semantics may not be identical, there are seductively similar flags. MAP_PRIVATE - CreateFileMapping with PAGE_WRITECOPY MAP_ANONYMOUS - somewhat similar to CreateFileMapping with INVALID_HANDLE_VALUE (-1) (uses system page file) MAP_FIXED - MapViewOfFileEx with placement address. Cheers, re