Navigation
API > API/Runtime > API/Runtime/EventLoop
| Name | IEventLoop |
| Type | class |
| Header File | /Engine/Source/Runtime/Online/Experimental/EventLoop/Public/EventLoop/IEventLoop.h |
| Include Path | #include "EventLoop/IEventLoop.h" |
Syntax
class IEventLoop : public TSharedFromThis< IEventLoop, ESPMode::ThreadSafe >
Inheritance Hierarchy
- TSharedFromThis< IEventLoop, ESPMode::ThreadSafe > → IEventLoop
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IEventLoop() |
EventLoop/IEventLoop.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearTimer
(
FTimerHandle& InHandle, |
Clears a previously set timer.Thread safe. | EventLoop/IEventLoop.h | |
FTimespan GetLoopTime() |
Return the event loops current loop time.NOT thread safe. | EventLoop/IEventLoop.h | |
bool Init() |
Initialize the event loop.NOT thread safe. | EventLoop/IEventLoop.h | |
void PostAsyncTask
(
FAsyncTask&& Task |
Post a task to be run by the event loop. | EventLoop/IEventLoop.h | |
void RequestShutdown
(
FOnShutdownComplete&& OnShutdownComplete |
Signals a shutdown request to the event loop. | EventLoop/IEventLoop.h | |
void Run () |
Run the event loop until shutdown is called. | EventLoop/IEventLoop.h | |
bool RunOnce
(
FTimespan WaitTime |
Run one iteration of the event loop.NOT thread safe. | EventLoop/IEventLoop.h | |
FTimerHandle SetTimer
(
FTimerCallback&& Callback, |
Set a new timer. | EventLoop/IEventLoop.h |