engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FScopedEvent类 参考

This class is allows a simple one-shot scoped event. 更多...

#include <ScopedEvent.h>

Public 成员函数

CORE_API FScopedEvent ()
 Default constructor.
 
FEvent * Get ()
 Retrieve the event, usually for passing around. 更多...
 
CORE_API bool IsReady ()
 Checks if the event has been triggered (used for special early out cases of scope event) if this returns true once it will return true forever 更多...
 
void Trigger ()
 Triggers the event.
 
CORE_API ~FScopedEvent ()
 Destructor.
 

详细描述

This class is allows a simple one-shot scoped event.

Usage: { FScopedEvent MyEvent; SendReferenceOrPointerToSomeOtherThread(&MyEvent); // Other thread calls MyEvent->Trigger(); // MyEvent destructor is here, we wait here. }

成员函数说明

◆ Get()

FEvent * FScopedEvent::Get ( )
inline

Retrieve the event, usually for passing around.

返回
The event.

◆ IsReady()

CORE_API bool FScopedEvent::IsReady ( )

Checks if the event has been triggered (used for special early out cases of scope event) if this returns true once it will return true forever

返回
returns true if the scoped event has been triggered once

该类的文档由以下文件生成: