#include <EventLoop.h>
|
| | TEventLoop (FParams &&Params=FParams()) |
| |
| virtual | ~TEventLoop () |
| |
| IOManagerType::FIOAccess & | GetIOAccess () |
| |
| virtual bool | Init () override |
| |
| virtual void | RequestShutdown (FOnShutdownComplete &&OnShutdownComplete=FOnShutdownComplete()) override |
| |
| virtual FTimerHandle | SetTimer (FTimerCallback &&Callback, FTimespan InRate, bool InbRepeat=false, TOptional< FTimespan > InFirstDelay=TOptional< FTimespan >()) override |
| |
| virtual void | ClearTimer (FTimerHandle &InHandle, FOnTimerCleared &&OnTimerCleared=FOnTimerCleared()) override |
| |
| virtual void | PostAsyncTask (FAsyncTask &&Task) override |
| |
| virtual void | Run () override |
| |
| virtual bool | RunOnce (FTimespan WaitTime) override |
| |
| virtual FTimespan | GetLoopTime () const override |
| |
| virtual | ~IEventLoop ()=default |
| |
| TSharedRef< IEventLoop, Mode > | AsShared () |
| |
| TSharedRef< IEventLoop const, Mode > | AsShared () const |
| |
| TSharedRef< SubobjectType, Mode > | AsSharedSubobject (SubobjectType *SubobjectPtr) const |
| |
| TWeakPtr< IEventLoop, Mode > | AsWeak () |
| |
| TWeakPtr< IEventLoop const, Mode > | AsWeak () const |
| |
| TWeakPtr< SubobjectType, Mode > | AsWeakSubobject (SubobjectType *SubobjectPtr) const |
| |
| void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const |
| |
| void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const |
| |
| UE_FORCEINLINE_HINT bool | DoesSharedInstanceExist () const |
| |
◆ TEventLoop()
◆ ~TEventLoop()
◆ ClearTimer()
Clears a previously set timer.
Thread safe.
- Parameters
-
| InHandle | The handle of the timer to clear. |
| OnTimerCleared | Callback to be fired when the timer has been removed. The callback will be fired from within the event loops RunOnce method. |
Implements UE::EventLoop::IEventLoop.
◆ GetIOAccess()
◆ GetLoopTime()
◆ Init()
◆ PostAsyncTask()
Post a task to be run by the event loop. Queues the task to be run and signals the event loop to wake.
Thread safe.
- Parameters
-
Implements UE::EventLoop::IEventLoop.
◆ RequestShutdown()
Signals a shutdown request to the event loop. May be signaled from any thread. Once Shutdown has been called, continue calling Poll until Invalidates the timer handle as it should no longer be used.
Thread safe.
Implements UE::EventLoop::IEventLoop.
◆ Run()
◆ RunOnce()
◆ SetTimer()
Set a new timer. The timer callback will be triggered from within the call to RunOnce, which may occur on a different thread from the one which set the timer.
Thread safe.
- Parameters
-
| Callback | Callback to call when timer fires. |
| InRate | The amount of time between set and firing. |
| InbRepeat | true to keep firing at Rate intervals, false to fire only once. |
| InFirstDelay | The time for the first iteration of a looping timer. |
- Returns
- handle to the registered timer.
Implements UE::EventLoop::IEventLoop.
The documentation for this class was generated from the following file:
- Engine/Source/Runtime/Online/Experimental/EventLoop/Public/EventLoop/EventLoop.h