Navigation
API > API/Runtime > API/Runtime/IPC
Example class for synchronized interprocess memory
| Name | FSynchronizedInterprocessMemory |
| Type | class |
| Header File | /Engine/Source/Runtime/IPC/Public/IPC.h |
| Include Path | #include "IPC.h" |
Syntax
class FSynchronizedInterprocessMemory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSynchronizedInterprocessMemory
(
FPlatformProcess::FSemaphore* InMutex, |
Constructor | IPC.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSynchronizedInterprocessMemory() |
Destructor | IPC.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Memory | FPlatformMemory::FSharedMemoryRegion * | Low-level memory region | IPC.h | |
| Mutex | FPlatformProcess::FSemaphore * | Lock that guards access to the memory region | IPC.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Read
(
FString& OutString, |
Reads a string from shared memory | IPC.h | |
bool Write
(
const FString& String, |
Writes string to shared memory | IPC.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FSynchronizedInterprocessMemory * Create
(
const TCHAR* Name, |
Creates a new synchronized interprocess memory object | IPC.h | |
static FSynchronizedInterprocessMemory * OpenExisting
(
const TCHAR* Name, |
Opens existing synchronized interprocess memory object | IPC.h |