Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformProcess
Generic representation of a interprocess semaphore
| Name | FSemaphore |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformProcess.h |
| Include Path | #include "GenericPlatform/GenericPlatformProcess.h" |
Syntax
struct FSemaphore
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSemaphore
(
const FString& InName |
Creates and initializes a new instance with the specified name. | GenericPlatform/GenericPlatformProcess.h | |
FSemaphore
(
const TCHAR* InName |
Creates and initializes a new instance with the specified name. | GenericPlatform/GenericPlatformProcess.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSemaphore() |
Virtual destructor. | GenericPlatform/GenericPlatformProcess.h |
Enums
Protected
| Name | Remarks |
|---|---|
| Limits |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TCHAR * GetName() |
Returns the name of the object | GenericPlatform/GenericPlatformProcess.h | |
void Lock() |
Acquires an exclusive access (also known as Wait()) | GenericPlatform/GenericPlatformProcess.h | |
bool TryLock
(
uint64 NanosecondsToWait |
Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()). | GenericPlatform/GenericPlatformProcess.h | |
void Unlock() |
Relinquishes an exclusive access (also known as Release()) | GenericPlatform/GenericPlatformProcess.h |