[interprocess, 1.51] basic_managed_shared_memory::flush removed?

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. thanks, tim

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

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?
thanks. iirc, my code does not necessarily depend on it, but it is rather used to be on the safe side. thanks, tim
participants (2)
-
Ion Gaztañaga
-
Tim Blechmann