|
Boost : |
Subject: Re: [boost] [Interprocess] Managed mapped file questions
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2012-12-13 18:06:27
El 13/12/2012 2:28, Jorge Lodos Vigil escribió:
> Given that the mapped file content is not part of the library
interface, and the only expected user of the mapped file is the library
itself, why waste time in Windows? Seems to me that a requirement that
files should be identical is too strong, as long as they work and
perhaps don't affect platform portability. File portability between
platforms should be warranted? What about platforms with different
endianness?
I just remembered that for initialization issues, at least the first
bytes of the segment are supposed to be zero (POSIX guarantee) when
first created. This zero value is used for some atomic operations to
avoid racing conditions between simultaneous creation calls from
different processes or threads. Maybe there is a way to guarantee the
zero fill just for the first bytes of the underlying object and avoid it
for the rest of the object.
Best,
Ion
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk