Update of /cvsroot/boost/boost/boost/interprocess/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2162
Modified Files:
managed_open_or_create_impl.hpp
Log Message:
Fixed bug in the mapping call, the mapping address was not used.
Index: managed_open_or_create_impl.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/interprocess/detail/managed_open_or_create_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- managed_open_or_create_impl.hpp 15 Oct 2006 13:05:38 -0000 1.1
+++ managed_open_or_create_impl.hpp 23 Mar 2007 16:05:01 -0000 1.2
@@ -249,7 +249,7 @@
dev.truncate(size);
//If the following throws, we will truncate the file to 1
- mapped_region region(dev, read_write);
+ mapped_region region(dev, read_write, 0, 0, addr);
volatile boost::uint32_t *addr =
static_cast<boost::uint32_t*>(region.get_address());
@@ -296,7 +296,7 @@
throw interprocess_exception(error_info(corrupted_error));
}
- mapped_region region(dev, read_write);
+ mapped_region region(dev, read_write, 0, 0, addr);
volatile boost::uint32_t *addr =
static_cast<boost::uint32_t*>(region.get_address());
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs