ObjectStore C++ API Reference

os_with_mapped

os_with_mapped::os_with_mapped()

os_with_mapped (
          void *location, 
          os_unsigned_int32 size, 
          os_boolean for_write = 0
          );
Creates an os_with_mapped object that ensures that the persistent range indicated in the location and size parameters is accessible to system calls and library functions, by forcing the range to stay in the cache and accessible in memory.

location specifies the starting address of the range

size specifies the size of the range in bytes

for_write is a Boolean value that indicates whether you intend to update the object.

Note that an os_mapped object cannot be used across transaction boundaries, including nested transactions.

See Ensuring Data Access During System Calls in ObjectStore C++ API User Guide for an example.

os_with_mapped::~os_with_mapped()

 ~os_with_mapped();
Restores normal cache behavior with respect to the range of data specified at the time the os_with_mapped object was created.



[previous] [next]

Copyright © 1997 Object Design, Inc. All rights reserved.

Updated: 03/31/98 17:25:09