![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericPlatformProcess.h>
Inheritance diagram for FGenericPlatformProcess::FSemaphore:Public Member Functions | |
| const TCHAR * | GetName () const |
| virtual void | Lock ()=0 |
| virtual bool | TryLock (uint64 NanosecondsToWait)=0 |
| virtual void | Unlock ()=0 |
| FSemaphore (const FString &InName) | |
| FSemaphore (const TCHAR *InName) | |
| virtual | ~FSemaphore () |
Protected Types | |
| enum | Limits { MaxSemaphoreName = 128 } |
Protected Attributes | |
| TCHAR | Name [MaxSemaphoreName] |
Generic representation of a interprocess semaphore
|
protected |
| FGenericPlatformProcess::FSemaphore::FSemaphore | ( | const FString & | InName | ) |
Creates and initializes a new instance with the specified name.
| InName | name of the semaphore (all processes should use the same) |
| FGenericPlatformProcess::FSemaphore::FSemaphore | ( | const TCHAR * | InName | ) |
Creates and initializes a new instance with the specified name.
| InName | name of the semaphore (all processes should use the same) |
|
inlinevirtual |
Virtual destructor.
|
inline |
Returns the name of the object
Acquires an exclusive access (also known as Wait())
Implemented in FWindowsPlatformProcess::FWindowsSemaphore.
Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()).
| Nanoseconds | (10^-9 seconds) to wait for, |
Implemented in FWindowsPlatformProcess::FWindowsSemaphore.
Relinquishes an exclusive access (also known as Release())
Implemented in FWindowsPlatformProcess::FWindowsSemaphore.
|
protected |
Name of the region