Navigation
Unreal Engine C++ API Reference > Runtime > Core > HAL
Inheritance Hierarchy
- FRunnable
- FAnalysisProcessor::FImpl
- FAsyncWriter
- FBackChannelOSCConnection
- FBackChannelThreadedListener
- FChunkInstallTask
- FChunkMountTask
- FChunkSetupTask
- FDisplayClusterFillDerivedDataCacheWorker
- FDMXOutputPort
- FFastBuildJobProcessor
- FGameThreadHitchHeartBeatThreaded
- FInteractiveProcess
- FLiveLinkFreeDSource
- FLiveLinkVRPNSource
- FLiveLinkXRSource
- FMediaIOCoreWaitVSyncThread
- FMicrosoftSpatialSound
- FMixerNullCallback
- FMonitoredProcess
- FSerializedUATProcess
- FMovieSceneSerializerRunnable
- FMultichannelTcpReceiver
- FMultichannelTcpSender
- FOnlineAsyncTaskManager
- FPreLoadScreenSlateThreadTask
- FRemoteControlWebInterfaceProcess
- FRemoteSessionImageChannel
- FShaderCompileThreadRunnableBase
- FShaderCompileDistributedThreadRunnable_Interface
- FShaderCompileThreadRunnable
- FStreamSearch
- FTcpListener
- FTCPServer
- FThreadHeartBeat
- FUdpSocketReceiver
- FUdpSocketSender
- IAudioMixerPlatformInterface
- FMixerPlatformNonRealtime
- TAsyncRunnable
- UIpNetDriver::FReceiveThreadRunnable
- USimpleAudioEncoder
- USimpleVideoDecoder
- USimpleVideoEncoder
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/HAL/Runnable.h |
Include | #include "HAL/Runnable.h" |
Syntax
class FRunnable
Remarks
Interface for "runnable" objects.
A runnable object is an object that is "run" on an arbitrary thread. The call usage pattern is Init(), Run(), Exit(). The thread that is going to "run" this object always uses those calling semantics. It does this on the thread that is created so that any thread specific uses (TLS, etc.) are available in the contexts of those calls. A "runnable" does all initialization in Init().
If initialization fails, the thread stops execution and returns an error code. If it succeeds, Run() is called where the real threaded work is done. Upon completion, Exit() is called to allow correct clean up.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~FRunnable () |
Virtual destructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Exit () |
Exits the runnable object. |
![]() ![]() |
FSingleThreadRunnable * | Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. | |
![]() ![]() |
bool | Init () |
Initializes the runnable object. |
![]() |
uint32 | Run () |
Runs the runnable object. |
![]() ![]() |
void | Stop () |
Stops the runnable object.This is called if a thread is requested to terminate early. |