Navigation
API > API/Runtime > API/Runtime/EventLoop
| Name | TEventLoop |
| Type | class |
| Header File | /Engine/Source/Runtime/Online/Experimental/EventLoop/Public/EventLoop/EventLoop.h |
| Include Path | #include "EventLoop/EventLoop.h" |
Syntax
template<typename IOManagerType, typename Traits>
class TEventLoop : public UE::EventLoop::IEventLoop
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TEventLoop
(
FParams&& Params |
EventLoop/EventLoop.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TEventLoop() |
EventLoop/EventLoop.h |
Structs
| Name | Remarks |
|---|---|
| FParams |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AsyncTasks | TMpscQueue< FAsyncTask > | EventLoop/EventLoop.h | ||
| bNotifyOnInit | TAtomic< bool > | EventLoop/EventLoop.h | ||
| bShutdownCompleted | TAtomic< bool > | EventLoop/EventLoop.h | ||
| bShutdownRequested | TAtomic< bool > | EventLoop/EventLoop.h | ||
| EventLoopThreadId | TAtomic< uint32 > | EventLoop/EventLoop.h | ||
| InitMutex | UE::FMutex | EventLoop/EventLoop.h | ||
| IOManager | IOManagerType | EventLoop/EventLoop.h | ||
| LoopTime | FTimespan | EventLoop/EventLoop.h | ||
| ShutdownMutex | UE::FMutex | EventLoop/EventLoop.h | ||
| ShutdownRequests | TArray< FOnShutdownComplete > | EventLoop/EventLoop.h | ||
| TimerManager | TTimerManager< typename Traits::FTimerManagerTraits > | EventLoop/EventLoop.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
IOManagerType::FIOAccess & GetIOAccess() |
EventLoop/EventLoop.h |
Overridden from IEventLoop
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ClearTimer
(
FTimerHandle& InHandle, |
Clears a previously set timer.Thread safe. | EventLoop/EventLoop.h | |
virtual FTimespan GetLoopTime() |
Return the event loops current loop time.NOT thread safe. | EventLoop/EventLoop.h | |
virtual bool Init() |
Initialize the event loop.NOT thread safe. | EventLoop/EventLoop.h | |
virtual void PostAsyncTask
(
FAsyncTask&& Task |
Post a task to be run by the event loop. | EventLoop/EventLoop.h | |
virtual void RequestShutdown
(
FOnShutdownComplete&& OnShutdownComplete |
Signals a shutdown request to the event loop. | EventLoop/EventLoop.h | |
virtual void Run () |
Run the event loop until shutdown is called. | EventLoop/EventLoop.h | |
virtual bool RunOnce
(
FTimespan WaitTime |
Run one iteration of the event loop.NOT thread safe. | EventLoop/EventLoop.h | |
virtual FTimerHandle SetTimer
(
FTimerCallback&& Callback, |
Set a new timer. | EventLoop/EventLoop.h |