Class Tree.MultithreadedSelfTest<TOverlapHandler>
- Namespace
- BepuPhysics.Trees
- Assembly
- BepuPhysics.dll
public class Tree.MultithreadedSelfTest<TOverlapHandler> where TOverlapHandler : struct, IOverlapHandler
Type Parameters
TOverlapHandler
- Inheritance
-
Tree.MultithreadedSelfTest<TOverlapHandler>
- Inherited Members
Constructors
MultithreadedSelfTest(BufferPool)
public MultithreadedSelfTest(BufferPool pool)
Parameters
pool
BufferPool
Fields
OverlapHandlers
public TOverlapHandler[] OverlapHandlers
Field Value
- TOverlapHandler[]
Pool
public BufferPool Pool
Field Value
- BufferPool
Tree
public Tree Tree
Field Value
Properties
JobCount
public int JobCount { get; }
Property Value
Methods
CompleteSelfTest()
Cleans up after a multithreaded self test.
public void CompleteSelfTest()
ExecuteJob(int, int)
public void ExecuteJob(int jobIndex, int workerIndex)
Parameters
PairTest(int)
Executes a single worker of the multithreaded self test.
public void PairTest(int workerIndex)
Parameters
workerIndex
intIndex of the worker executing this set of tests.
PrepareJobs(ref Tree, TOverlapHandler[], int)
Prepares the jobs associated with a self test. Must be called before a dispatch over PairTest.
public void PrepareJobs(ref Tree tree, TOverlapHandler[] overlapHandlers, int threadCount)