Table of Contents

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

Tree

Properties

JobCount

public int JobCount { get; }

Property Value

int

Methods

CompleteSelfTest()

Cleans up after a multithreaded self test.

public void CompleteSelfTest()

ExecuteJob(int, int)

public void ExecuteJob(int jobIndex, int workerIndex)

Parameters

jobIndex int
workerIndex int

PairTest(int)

Executes a single worker of the multithreaded self test.

public void PairTest(int workerIndex)

Parameters

workerIndex int

Index 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)

Parameters

tree Tree

Tree to test against itself.

overlapHandlers TOverlapHandler[]

Callbacks used to handle individual overlaps detected by the self test.

threadCount int

Number of threads to prepare jobs for.