engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FPreLoadScreenSlateThreadTask类 参考

The Slate thread is simply run on a worker thread. 更多...

#include <PreLoadSlateThreading.h>

+ 类 FPreLoadScreenSlateThreadTask 继承关系图:

Public 成员函数

virtual void Exit () override
 Exits the runnable object. 更多...
 
virtual bool Init () override
 Initializes the runnable object. 更多...
 
virtual uint32 Run () override
 Runs the runnable object. 更多...
 
- Public 成员函数 继承自 FRunnable
virtual void Exit ()
 Exits the runnable object. 更多...
 
virtual class FSingleThreadRunnable * GetSingleThreadInterface ()
 Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. 更多...
 
virtual bool Init ()
 Initializes the runnable object. 更多...
 
virtual uint32 Run ()=0
 Runs the runnable object. 更多...
 
virtual void Stop ()
 Stops the runnable object. 更多...
 
virtual ~FRunnable ()
 Virtual destructor
 

详细描述

The Slate thread is simply run on a worker thread.

Slate is run on another thread because the game thread (where Slate is usually run) is blocked loading things. Slate is very modular, which makes it very easy to run on another thread with no adverse effects. It does not enqueue render commands, because the RHI is not thread safe. Thus, it waits to enqueue render commands until the render thread tickables ticks, and then it calls them there.

成员函数说明

◆ Exit()

virtual void FPreLoadScreenSlateThreadTask::Exit ( )
overridevirtual

Exits the runnable object.

Called in the context of the aggregating thread to perform any cleanup.

参见
Init, Run, Stop

重载 FRunnable .

◆ Init()

virtual bool FPreLoadScreenSlateThreadTask::Init ( )
overridevirtual

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.

返回
True if initialization was successful, false otherwise
参见
Run, Stop, Exit

重载 FRunnable .

◆ Run()

virtual uint32 FPreLoadScreenSlateThreadTask::Run ( )
overridevirtual

Runs the runnable object.

This is where all per object thread work is done. This is only called if the initialization was successful.

返回
The exit code of the runnable object
参见
Init, Stop, Exit

实现了 FRunnable.


该类的文档由以下文件生成: