Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- FRunnable
- FSingleThreadRunnable
- FArchive
- FAsyncWriter
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/OutputDeviceFile.h |
| Include | #include "Misc/OutputDeviceFile.h" |
Syntax
class FAsyncWriter :
public FRunnable ,
public FSingleThreadRunnable ,
public FArchive
Remarks
Provides a thread-safe serialization interface with a background thread doing the actual writes. [] tags identify which thread owns a variable or function
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAsyncWriter
(
FArchive& InAr, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRunnable
| Type | Name | Description | |
|---|---|---|---|
| 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. |
Overridden from FSingleThreadRunnable
| Type | Name | Description | |
|---|---|---|---|
| void | Tick () |
[CLIENT THREAD] A substitute for Run() for when threading is disabled. |
Overridden from FArchive
| Type | Name | Description | |
|---|---|---|---|
| void | Flush () |
Flush all buffers to disk | |
| void | [CLIENT THREAD] Serialize data to buffer that will later be saved to disk by the async thread |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EConstants | |||
| EThreadNameOption |