Ark Server API (ASA) - Wiki
|
#include <GenericPlatformProcess.h>
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
Definition at line 136 of file GenericPlatformProcess.h.
|
protected |
Enumerator | |
---|---|
MaxSemaphoreName |
Definition at line 177 of file GenericPlatformProcess.h.
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.
Definition at line 173 of file GenericPlatformProcess.h.
|
inline |
Returns the name of the object
Definition at line 139 of file GenericPlatformProcess.h.
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
Definition at line 183 of file GenericPlatformProcess.h.