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. }
|
inline |
Retrieve the event, usually for passing around.
| 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