MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Mcro::Threading::Detail Namespace Reference

Functions

MCRO_API auto GetThreadCheck (ENamedThreads::Type threadName) -> bool(*)()
 
template<CFunctionLike When>
requires (TFunction_ArgCount<When> == 0)
void RunInThreadBoilerplate (ENamedThreads::Type threadName, TUniqueFunction< void()> &&func, When &&when)
 
template<CFunctionLike When>
requires (TFunction_ArgCount<When> == 0)
void EnqueueRenderCommandBoilerplate (TUniqueFunction< void(FRHICommandListImmediate &)> &&func, When &&when)
 
template<CFunctorObject Function, typename Result = TFunction_Return<Function>, CFunctionLike When>
requires ( TFunction_ArgCount<Function> == 0 && TFunction_ArgCount<When> == 0 )
TFuture< Result > PromiseInThreadBoilerplate (ENamedThreads::Type threadName, Function &&func, When &&when)
 
template<CFunctorObject Function, typename Result = TFunction_Return<Function>, CFunctionLike When>
requires ( TFunction_ArgCount<Function> == 1 && CSameAs<FRHICommandListImmediate&, TFunction_Arg<Function, 0>> && TFunction_ArgCount<When> == 0 )
TFuture< Result > EnqueueRenderPromiseBoilerplate (ENamedThreads::Type threadName, Function &&func, When &&when)
 

Function Documentation

◆ EnqueueRenderCommandBoilerplate()

template<CFunctionLike When>
requires (TFunction_ArgCount<When> == 0)
void Mcro::Threading::Detail::EnqueueRenderCommandBoilerplate ( TUniqueFunction< void(FRHICommandListImmediate &)> && func,
When && when )

Definition at line 48 of file Threading.h.

◆ EnqueueRenderPromiseBoilerplate()

template<CFunctorObject Function, typename Result = TFunction_Return<Function>, CFunctionLike When>
requires ( TFunction_ArgCount<Function> == 1 && CSameAs<FRHICommandListImmediate&, TFunction_Arg<Function, 0>> && TFunction_ArgCount<When> == 0 )
TFuture< Result > Mcro::Threading::Detail::EnqueueRenderPromiseBoilerplate ( ENamedThreads::Type threadName,
Function && func,
When && when )

Definition at line 90 of file Threading.h.

◆ GetThreadCheck()

MCRO_API auto Mcro::Threading::Detail::GetThreadCheck ( ENamedThreads::Type threadName) -> bool(*)()

◆ PromiseInThreadBoilerplate()

template<CFunctorObject Function, typename Result = TFunction_Return<Function>, CFunctionLike When>
requires ( TFunction_ArgCount<Function> == 0 && TFunction_ArgCount<When> == 0 )
TFuture< Result > Mcro::Threading::Detail::PromiseInThreadBoilerplate ( ENamedThreads::Type threadName,
Function && func,
When && when )

Definition at line 65 of file Threading.h.

◆ RunInThreadBoilerplate()

template<CFunctionLike When>
requires (TFunction_ArgCount<When> == 0)
void Mcro::Threading::Detail::RunInThreadBoilerplate ( ENamedThreads::Type threadName,
TUniqueFunction< void()> && func,
When && when )

Definition at line 35 of file Threading.h.