![]() |
Ark Server API (ASA) - Wiki
|
#include <WindowsPlatformProcess.h>
Inheritance diagram for FWindowsPlatformProcess::FWindowsSemaphore:
Collaboration diagram for FWindowsPlatformProcess::FWindowsSemaphore:Public Member Functions | |
| virtual void | Lock () |
| virtual bool | TryLock (uint64 NanosecondsToWait) |
| virtual void | Unlock () |
| Windows::HANDLE | GetSemaphore () |
| FWindowsSemaphore (const FString &InName, Windows::HANDLE InSemaphore) | |
| FWindowsSemaphore (const TCHAR *InName, Windows::HANDLE InSemaphore) | |
| virtual | ~FWindowsSemaphore () |
Public Member Functions inherited from FGenericPlatformProcess::FSemaphore | |
| const TCHAR * | GetName () const |
| FSemaphore (const FString &InName) | |
| FSemaphore (const TCHAR *InName) | |
| virtual | ~FSemaphore () |
Protected Attributes | |
| Windows::HANDLE | Semaphore |
Protected Attributes inherited from FGenericPlatformProcess::FSemaphore | |
| TCHAR | Name [MaxSemaphoreName] |
Additional Inherited Members | |
Protected Types inherited from FGenericPlatformProcess::FSemaphore | |
| enum | Limits { MaxSemaphoreName = 128 } |
Windows representation of a interprocess semaphore
Definition at line 37 of file WindowsPlatformProcess.h.
| FWindowsPlatformProcess::FWindowsSemaphore::FWindowsSemaphore | ( | const FString & | InName, |
| Windows::HANDLE | InSemaphore ) |
Constructor
| FWindowsPlatformProcess::FWindowsSemaphore::FWindowsSemaphore | ( | const TCHAR * | InName, |
| Windows::HANDLE | InSemaphore ) |
Allocation free constructor
|
virtual |
Destructor
|
inline |
Returns the OS handle
Definition at line 44 of file WindowsPlatformProcess.h.
Acquires an exclusive access (also known as Wait())
Implements FGenericPlatformProcess::FSemaphore.
|
virtual |
Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()).
| Nanoseconds | (10^-9 seconds) to wait for, |
Implements FGenericPlatformProcess::FSemaphore.
Relinquishes an exclusive access (also known as Release())
Implements FGenericPlatformProcess::FSemaphore.
|
protected |
OS handle
Definition at line 58 of file WindowsPlatformProcess.h.