FSemaphore

Generic representation of a interprocess semaphore

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformProcess.h"

Syntax

struct FSemaphore

Remarks

Generic representation of a interprocess semaphore

Variables

Name Description

Protected variable

TCHAR[MaxSemaph...

 

Name

Name of the region

Constructors

Name Description

Public function

FSemaphore

(
    const FString& InName
)

Creates and initializes a new instance with the specified name.

Public function

FSemaphore

(
    const TCHAR* InName
)

Creates and initializes a new instance with the specified name.

Destructors

Name Description

Public function Virtual

~FSemaphore()

Virtual destructor.

Functions

Name Description

Public function Const

const TCHAR ...

 

GetName()

Returns the name of the object

Public function

void

 

Lock()

Acquires an exclusive access (also known as Wait())

Public function

bool

 

TryLock

(
    uint64 NanosecondsToWait
)

Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()).

Public function

void

 

Unlock()

Relinquishes an exclusive access (also known as Release())

Enums

Name

Description

Protected enum

Limits

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