![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <HttpThread.h>
Inheritance diagram for FHttpThreadBase:Public Member Functions | |
| FHttpThreadBase () | |
| virtual | ~FHttpThreadBase () |
| virtual void | StartThread () |
| virtual void | StopThread () |
| bool | IsStopped () const |
| virtual void | AddRequest (FHttpRequestCommon *Request) |
| virtual void | CancelRequest (FHttpRequestCommon *Request) |
| virtual void | GetCompletedRequests (TArray< FHttpRequestCommon * > &OutCompletedRequests) |
| virtual void | Tick () override |
| bool | NeedsSingleThreadTick () const |
| virtual void | UpdateConfigs () |
| virtual TSharedPtr< IHttpTaskTimerHandle > | AddHttpThreadTask (TFunction< void()> &&Task, float InDelay)=0 |
| virtual void | RemoveTimerHandle (FTSTicker::FDelegateHandle DelegateHandle)=0 |
| virtual void | RemoveTimerHandle (UE::EventLoop::FTimerHandle EventLoopTimerHandle)=0 |
Protected Member Functions | |
| virtual void | HttpThreadTick (float DeltaSeconds) |
| virtual bool | StartThreadedRequest (FHttpRequestCommon *Request) |
| virtual void | CompleteThreadedRequest (FHttpRequestCommon *Request) |
| virtual bool | Init () override |
| virtual uint32 | Run () override |
| virtual void | Stop () override |
| virtual void | Exit () override |
| void | Process (TArray< FHttpRequestCommon * > &RequestsToCancel, TArray< FHttpRequestCommon * > &RequestsToComplete) |
| virtual class FSingleThreadRunnable * | GetSingleThreadInterface () override |
Manages Http thread Assumes any requests entering the system will remain valid (not deleted) until they exit the system
| FHttpThreadBase::FHttpThreadBase | ( | ) |
|
virtual |
|
pure virtual |
Add task to be ran on the http thread next tick
| Task | The task to be ran |
| InDelay | The delay to wait before running the task |
Implemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
virtual |
Add a request to begin processing on HTTP thread.
| Request | the request to be processed on the HTTP thread |
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
virtual |
Mark a request as cancelled. Called on non-HTTP thread.
| Request | the request to be processed on the HTTP thread |
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
protectedvirtual |
Complete a request on the http thread
Reimplemented in FAppleEventLoopHttpThread.
|
virtual |
Get completed requests. Clears internal arrays. Called on non-HTTP thread.
| OutCompletedRequests | array of requests that have been completed |
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
inlineoverrideprotectedvirtual |
FSingleThreadRunnable accessor for ticking this FRunnable when multi-threading is disabled.
Reimplemented from FRunnable.
Tick on http thread
Reimplemented in FLegacyHttpThread.
Initializes the runnable object.
This method is called in the context of the thread object that aggregates this, not the thread that passes this runnable to a new thread.
Reimplemented from FRunnable.
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
| bool FHttpThreadBase::NeedsSingleThreadTick | ( | ) | const |
When true the owner of the HTTPThread needs to manually call Tick() since no automomous threads are executing the runnable object
|
protected |
|
pure virtual |
Implemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
pure virtual |
Implemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
overrideprotectedvirtual |
Runs the runnable object.
This is where all per object thread work is done. This is only called if the initialization was successful.
Implements FRunnable.
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
virtual |
Start the HTTP thread.
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
protectedvirtual |
Start processing a request on the http thread
Reimplemented in FAppleEventLoopHttpThread.
Stops the runnable object.
This is called if a thread is requested to terminate early.
Reimplemented from FRunnable.
Reimplemented in FLegacyHttpThread.
|
virtual |
Stop the HTTP thread. Blocks until thread has stopped.
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
overridevirtual |
Implements FSingleThreadRunnable.
Reimplemented in FEventLoopHttpThread, and FLegacyHttpThread.
|
virtual |
Update configuration. Called when config has been updated and we need to apply any changes.
Reimplemented in FEventLoopHttpThread.
|
protected |
Threaded requests that are waiting to be cancelled on the http thread. Added to on (any) non-HTTP thread, processed then cleared on HTTP thread.
|
protected |
Threaded requests that have completed and are waiting for the game thread to process. Added to on HTTP thread, processed then cleared on game thread (Single producer, single consumer)
|
protected |
Threaded requests that are waiting to be processed on the http thread. Added to on (any) non-HTTP thread, processed then cleared on HTTP thread.
|
protected |
Threaded requests that are ready to run, but waiting due to the running request limit (not in any of the other lists, except potentially CancelledThreadedRequests). Only accessed on the HTTP thread.
|
protected |
Currently running threaded requests (not in any of the other lists, except potentially CancelledThreadedRequests). Only accessed on the HTTP thread.
|
protected |
Pointer to Runnable Thread