Boost logo

Boost :

From: rasmus ekman (m11048_at_[hidden])
Date: 2006-05-23 13:13:50


Slava, Alex wrote:
> On 5/22/06, Tomas Puverle <Tomas.Puverle_at_[hidden]> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk