![]() |
Ark Server API (ASA) - Wiki
|
#include <ScopedEvent.h>
Collaboration diagram for FScopedEvent:Public Member Functions | |
| FScopedEvent () | |
| ~FScopedEvent () | |
| void | Trigger () |
| bool | IsReady () |
| FEvent * | Get () |
Private Attributes | |
| FEvent * | Event |
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. }
Definition at line 18 of file ScopedEvent.h.
| FScopedEvent::FScopedEvent | ( | ) |
Default constructor.
| FScopedEvent::~FScopedEvent | ( | ) |
Destructor.
|
inline |
Retrieve the event, usually for passing around.
Definition at line 47 of file ScopedEvent.h.
| 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
|
inline |
Triggers the event.
Definition at line 29 of file ScopedEvent.h.
Here is the call graph for this function:
|
private |
Holds the event.
Definition at line 55 of file ScopedEvent.h.