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

Classes

struct  RecursiveSingleThreadTestBlock
 
class  RecursiveSingleThreadTestData
 
struct  SingleThreadTestBlock
 
class  SingleThreadTestData
 

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 For (int fromInclusive, int toExclusive, float deltaTime, ParallelForWithDtAuxPredicate body, int grainSize=16)
 
static void AssertIsMainThread ()
 
static bool IsMainThread ()
 

Static Public Attributes

static bool IsInParallelFor = false
 

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

◆ 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

Member Data Documentation

◆ IsInParallelFor

bool TaleWorlds.Library.TWParallel.IsInParallelFor = false
static