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

Generic representation of a interprocess semaphore 更多...

#include <GenericPlatformProcess.h>

+ 类 FGenericPlatformProcess::FSemaphore 继承关系图:

Public 成员函数

 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 属性

TCHAR Name [MaxSemaphoreName]
 Name of the region
 

详细描述

Generic representation of a interprocess semaphore

构造及析构函数说明

◆ FSemaphore() [1/2]

FGenericPlatformProcess::FSemaphore::FSemaphore ( const FString &  InName)

Creates and initializes a new instance with the specified name.

参数
InNamename of the semaphore (all processes should use the same)

◆ FSemaphore() [2/2]

FGenericPlatformProcess::FSemaphore::FSemaphore ( const TCHAR *  InName)

Creates and initializes a new instance with the specified name.

参数
InNamename of the semaphore (all processes should use the same)

成员函数说明

◆ TryLock()

virtual bool FGenericPlatformProcess::FSemaphore::TryLock ( uint64  NanosecondsToWait)
pure 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

在 FWindowsPlatformProcess::FWindowsSemaphore 内被实现.


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