ThreadUtils with Async.
More...
#include <RRThreadUtils.h>
|
static bool | IsInsideConstructor () |
| return true if called inside constructor. More...
|
|
template<typename TFunc , typename... TArgs> |
static void | DoTaskInGameThread (TFunc &&InTaskInGameThread, TArgs &&... InArgs) |
| Used in URRProceduralMeshComponent. More...
|
|
template<typename TFunc , typename... TArgs> |
static void | DoTaskInGameThreadLater (TFunc &&InTaskInGameThread, float InWaitingTime, TArgs &&... Args) |
|
template<typename TResult > |
static auto | DoAsyncTaskInThread (TFunction< TResult()> InTask, TFunction< void()> InCompletionCallback, const EAsyncExecution InExecutionThread=EAsyncExecution::ThreadPool) |
|
template<typename TResult > |
static void | AddAsyncTaskInThreadPool (FRRAsyncJob &OutAsyncJob, const uint64 InCurrentCaptureBatchId, TFunction< TResult()> InTask, TFunction< void()> InCompletionCallback) |
|
template<typename TResult > |
static void | AddAsyncTaskToJob (FRRAsyncJob &OutAsyncJob, const uint64 InCurrentCaptureBatchId, TFunction< TResult()> InTask, TFunction< void()> InCompletionCallback, const EAsyncExecution InExecutionThread=EAsyncExecution::ThreadPool) |
|
template<typename TAsyncTask > |
static void | EnsureAsyncTasksCompletion (const TArray< TUniquePtr< FAsyncTask< TAsyncTask >>> &InAsyncTasks) |
|
ThreadUtils with Async.
- See also
- Async
UCLASS()
◆ AddAsyncTaskInThreadPool()
template<typename TResult >
static void URRThreadUtils::AddAsyncTaskInThreadPool |
( |
FRRAsyncJob & |
OutAsyncJob, |
|
|
const uint64 |
InCurrentCaptureBatchId, |
|
|
TFunction< TResult()> |
InTask, |
|
|
TFunction< void()> |
InCompletionCallback |
|
) |
| |
|
inlinestatic |
◆ AddAsyncTaskToJob()
template<typename TResult >
static void URRThreadUtils::AddAsyncTaskToJob |
( |
FRRAsyncJob & |
OutAsyncJob, |
|
|
const uint64 |
InCurrentCaptureBatchId, |
|
|
TFunction< TResult()> |
InTask, |
|
|
TFunction< void()> |
InCompletionCallback, |
|
|
const EAsyncExecution |
InExecutionThread = EAsyncExecution::ThreadPool |
|
) |
| |
|
inlinestatic |
◆ DoAsyncTaskInThread()
template<typename TResult >
static auto URRThreadUtils::DoAsyncTaskInThread |
( |
TFunction< TResult()> |
InTask, |
|
|
TFunction< void()> |
InCompletionCallback, |
|
|
const EAsyncExecution |
InExecutionThread = EAsyncExecution::ThreadPool |
|
) |
| |
|
inlinestatic |
◆ DoTaskInGameThread()
template<typename TFunc , typename... TArgs>
static void URRThreadUtils::DoTaskInGameThread |
( |
TFunc && |
InTaskInGameThread, |
|
|
TArgs &&... |
InArgs |
|
) |
| |
|
inlinestatic |
◆ DoTaskInGameThreadLater()
template<typename TFunc , typename... TArgs>
static void URRThreadUtils::DoTaskInGameThreadLater |
( |
TFunc && |
InTaskInGameThread, |
|
|
float |
InWaitingTime, |
|
|
TArgs &&... |
Args |
|
) |
| |
|
inlinestatic |
◆ EnsureAsyncTasksCompletion()
template<typename TAsyncTask >
static void URRThreadUtils::EnsureAsyncTasksCompletion |
( |
const TArray< TUniquePtr< FAsyncTask< TAsyncTask >>> & |
InAsyncTasks | ) |
|
|
inlinestatic |
◆ IsInsideConstructor()
static bool URRThreadUtils::IsInsideConstructor |
( |
| ) |
|
|
inlinestatic |
return true if called inside constructor.
- Returns
- true
-
false
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/rapyutasimulationplugins/checkouts/devel/Source/RapyutaSimulationPlugins/Public/Core/RRThreadUtils.h