Maps a memory area, previously created by another process using CreateRtMemoryHandle, into the current thread's memory space.
CAUTION: This system call can set up an address space to refer to any area of physical memory, even if other descriptors already refer to that memory. Although this may be useful for aliasing purposes, do not overlap memory accidentally.
PVOID MapRtSharedMemory( RTHANDLE hSeg // rthandle for previously created memory area );
hSeg
MapRtSharedMemory maps a memory area exposed by CreateRtMemoryHandle into the segment of the calling thread.
Use FreeRtMemory to delete the mapping created by this call and to free the virtual memory associated with it.
Shared Memory can be used on the local host to share same physical memory between processes on the same or even on different nodes. Memory cannot be shared directly between nodes on different systems. Use CopyRtData to update memory objects when they reside on different systems.
NULL
E_OK 0x0000
E_MEM 0x0002
E_VMEM 0x00F0
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |