M&B: Bannerlord 1.3.4
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.TWParallel Class Reference

Public Member Functions

delegate void ParallelForAuxPredicate (int localStartIndex, int localEndIndex)
 
delegate void ParallelForWithDtAuxPredicate (int localStartIndex, int localEndIndex, float dt)
 

Static Public Member Functions

static void InitializeAndSetImplementation (IParallelDriver parallelDriver)
 
static ParallelLoopResult ForEach< TSource > (IEnumerable< TSource > source, Action< TSource > body)
 
static void ForEach< TSource > (IList< TSource > source, Action< TSource > body)
 
static void For (int fromInclusive, int toExclusive, ParallelForAuxPredicate body, int grainSize=16)
 
static void ForWithoutRenderThread (int fromInclusive, int toExclusive, ParallelForAuxPredicate body, int grainSize=16)
 
static void For (int fromInclusive, int toExclusive, float deltaTime, ParallelForWithDtAuxPredicate body, int grainSize=16)
 
static void AssertIsMainThread ()
 
static bool IsMainThread ()
 

Member Function Documentation

◆ ParallelForAuxPredicate()

delegate void TaleWorlds.Library.TWParallel.ParallelForAuxPredicate ( int localStartIndex,
int localEndIndex )

◆ ParallelForWithDtAuxPredicate()

delegate void TaleWorlds.Library.TWParallel.ParallelForWithDtAuxPredicate ( int localStartIndex,
int localEndIndex,
float dt )

◆ InitializeAndSetImplementation()

static void TaleWorlds.Library.TWParallel.InitializeAndSetImplementation ( IParallelDriver parallelDriver)
static

◆ ForEach< TSource >() [1/2]

static ParallelLoopResult TaleWorlds.Library.TWParallel.ForEach< TSource > ( IEnumerable< TSource > source,
Action< TSource > body )
static

◆ ForEach< TSource >() [2/2]

static void TaleWorlds.Library.TWParallel.ForEach< TSource > ( IList< TSource > source,
Action< TSource > body )
static

◆ For() [1/2]

static void TaleWorlds.Library.TWParallel.For ( int fromInclusive,
int toExclusive,
ParallelForAuxPredicate body,
int grainSize = 16 )
static

◆ ForWithoutRenderThread()

static void TaleWorlds.Library.TWParallel.ForWithoutRenderThread ( int fromInclusive,
int toExclusive,
ParallelForAuxPredicate body,
int grainSize = 16 )
static

◆ For() [2/2]

static void TaleWorlds.Library.TWParallel.For ( int fromInclusive,
int toExclusive,
float deltaTime,
ParallelForWithDtAuxPredicate body,
int grainSize = 16 )
static

◆ AssertIsMainThread()

static void TaleWorlds.Library.TWParallel.AssertIsMainThread ( )
static

◆ IsMainThread()

static bool TaleWorlds.Library.TWParallel.IsMainThread ( )
static