Windows representation of a interprocess semaphore
更多...
#include <WindowsPlatformProcess.h>
|
|
| FWindowsSemaphore (const FString &InName, Windows::HANDLE InSemaphore) |
| | Constructor
|
| |
|
| FWindowsSemaphore (const TCHAR *InName, Windows::HANDLE InSemaphore) |
| | Allocation free constructor
|
| |
|
Windows::HANDLE | GetSemaphore () |
| | Returns the OS handle
|
| |
|
virtual void | Lock () |
| | Acquires an exclusive access (also known as Wait())
|
| |
| virtual bool | TryLock (uint64 NanosecondsToWait) |
| | Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()). 更多...
|
| |
|
virtual void | Unlock () |
| | Relinquishes an exclusive access (also known as Release())
|
| |
|
virtual | ~FWindowsSemaphore () |
| | Destructor
|
| |
| | FSemaphore (const FString &InName) |
| | Creates and initializes a new instance with the specified name. 更多...
|
| |
| | FSemaphore (const TCHAR *InName) |
| | Creates and initializes a new instance with the specified name. 更多...
|
| |
|
const TCHAR * | GetName () const |
| | Returns the name of the object
|
| |
|
virtual void | Lock ()=0 |
| | Acquires an exclusive access (also known as Wait())
|
| |
| virtual bool | TryLock (uint64 NanosecondsToWait)=0 |
| | Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()). 更多...
|
| |
|
virtual void | Unlock ()=0 |
| | Relinquishes an exclusive access (also known as Release())
|
| |
|
virtual | ~FSemaphore () |
| | Virtual destructor.
|
| |
|
|
Windows::HANDLE | Semaphore |
| | OS handle
|
| |
|
TCHAR | Name [MaxSemaphoreName] |
| | Name of the region
|
| |
Windows representation of a interprocess semaphore
◆ TryLock()
| virtual bool FWindowsPlatformProcess::FWindowsSemaphore::TryLock |
( |
uint64 |
NanosecondsToWait | ) |
|
|
virtual |
Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()).
- 参数
-
| Nanoseconds | (10^-9 seconds) to wait for, |
- 返回
- false if was not able to lock within given time
实现了 FGenericPlatformProcess::FSemaphore.
该结构体的文档由以下文件生成: