Table of Contents

Class Tree.MultithreadedIntertreeTest<TOverlapHandler>

Namespace
BepuPhysics.Trees
Assembly
BepuPhysics.dll
public class Tree.MultithreadedIntertreeTest<TOverlapHandler> where TOverlapHandler : struct, IOverlapHandler

Type Parameters

TOverlapHandler
Inheritance
Tree.MultithreadedIntertreeTest<TOverlapHandler>
Inherited Members

Constructors

MultithreadedIntertreeTest(BufferPool)

public MultithreadedIntertreeTest(BufferPool pool)

Parameters

pool BufferPool

Fields

OverlapHandlers

public TOverlapHandler[] OverlapHandlers

Field Value

TOverlapHandler[]

Pool

public BufferPool Pool

Field Value

BufferPool

TreeA

public Tree TreeA

Field Value

Tree

TreeB

public Tree TreeB

Field Value

Tree

Properties

JobCount

public int JobCount { get; }

Property Value

int

Methods

CompleteTest()

Cleans up after a multithreaded self test.

public void CompleteTest()

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, 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 treeA, ref Tree treeB, TOverlapHandler[] overlapHandlers, int threadCount)

Parameters

treeA Tree
treeB Tree
overlapHandlers TOverlapHandler[]

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

threadCount int

Number of threads to prepare jobs for.