Photon Quantum 3.0.0

Public Member Functions | Public Attributes | List of all members
Quantum.Navigation.ThreadLocal Class Reference

An internal class that stored multi-threading related navigation context. More...

Public Member Functions

 ThreadLocal (Native.Allocator allocator, Int32 rawPathSize, RawPathAllocationStrategy rawPathAllocationStrategy)
 Creates a new thread local instance. More...
 
void AllocateMailboxBuffer (NavMesh navmesh)
 Allocates the mailbox buffer which is used to hold temporary memory for pathfinding calls for individual threads. More...
 
void Dispose ()
 Dispose pathfinder and mailbox buffer and release the memory. More...
 

Public Attributes

PathFinder PathFinder
 The path finder instance. More...
 

Detailed Description

An internal class that stored multi-threading related navigation context.

Constructor & Destructor Documentation

◆ ThreadLocal()

Quantum.Navigation.ThreadLocal.ThreadLocal ( Native.Allocator  allocator,
Int32  rawPathSize,
RawPathAllocationStrategy  rawPathAllocationStrategy 
)
inline

Creates a new thread local instance.

Parameters
allocatorAllocator to use.
rawPathSizeDefault raw path size.
rawPathAllocationStrategyDefault raw path allocation strategy.

Member Function Documentation

◆ AllocateMailboxBuffer()

void Quantum.Navigation.ThreadLocal.AllocateMailboxBuffer ( NavMesh  navmesh)
inline

Allocates the mailbox buffer which is used to hold temporary memory for pathfinding calls for individual threads.

Parameters
navmeshNavmesh to use

◆ Dispose()

void Quantum.Navigation.ThreadLocal.Dispose ( )
inline

Dispose pathfinder and mailbox buffer and release the memory.

Member Data Documentation

◆ PathFinder

PathFinder Quantum.Navigation.ThreadLocal.PathFinder

The path finder instance.