Boost logo

Boost :

Subject: Re: [boost] [interprocess::file_mapping] Please add resize method
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-08-07 16:43:01


El 06/08/2011 9:38, Dmytro Ovdiienko escribió:
> Hi Ion,
>
> Thank you for getting back.
>
> You can define extra method which does not guaranty to fill rest of file
> with zeros. On POSIX it will be filled with zeros. On windows it will/or not
> will be filled with zeros. Who cares. Both will conform method
> specification. User will be able to choose required behaviour.
>
> For instance my program does not require file to be filled with zeros.
> Instead it requires API to be as quick as hardware allows.
>
> Looking forward to hearing from you.

Maybe that's the best choice. I'd need to check if Interprocess can take
advantage of his behavior, but I don't know if I'm taking advantage of
this zero-initialization guarantee internally.

Best,

Ion


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