Subject: Re: [boost] [interprocess, 1.51] basic_managed_shared_memory::flush removed?
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2012-08-15 18:11:09


El 15/08/2012 10:01, Tim Blechmann escribió:
> testing 1.51 beta, i figured out, that
> basic_managed_shared_memory::flush has been removed. this currently
> breaks compilation of some of my code.
>
> wouldn't it be cleaner to deprecate it for some time and maybe post a
> warning? also a comment in the release notes, how to port code to 1.51
> would be very nice.

Yes, sorry, you are right, it should be deprecated and after that
removed, the same will happen, I'm afraid with
mapped_region::get_offset(). The problem with flush and shared memory is
that flushing into shared memory is unspecified according to POSIX::

http://pubs.opengroup.org/onlinepubs/009695399/functions/msync.html

"The effect of msync() on a shared memory object or a typed memory
object is unspecified"

Does flush() for shared memory useful in your platform?

Best,

Ion