FGenericPlatformProcess::NewInterprocessSynchObject

Creates or opens an interprocess synchronization object.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformProcess.h

Include

#include "GenericPlatform/GenericPlatformProcess.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformProcess.cpp

Syntax

static FSemaphore * NewInterprocessSynchObject
(
    const TCHAR * Name,
    bool bCreate,
    uint32 MaxLocks
)

Remarks

Creates or opens an interprocess synchronization object.

Returns

Pointer to heap allocated semaphore object. Caller is responsible for deletion.

Parameters

Parameter

Description

Name

name (so we can use it across processes).

bCreate

If true, the function will try to create, otherwise will try to open existing.

MaxLocks

Maximum amount of locks that the semaphore can have (pass 1 to make it act as mutex).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss