engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FWindowsPlatformProcess::FWindowsSemaphore结构体 参考

Windows representation of a interprocess semaphore 更多...

#include <WindowsPlatformProcess.h>

+ 类 FWindowsPlatformProcess::FWindowsSemaphore 继承关系图:

Public 成员函数

 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
 
- Public 成员函数 继承自 FGenericPlatformProcess::FSemaphore
 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.
 

Protected 属性

Windows::HANDLE Semaphore
 OS handle
 
- Protected 属性 继承自 FGenericPlatformProcess::FSemaphore
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.


该结构体的文档由以下文件生成: