A* Pathfinding Project  4.1.9
The A* Pathfinding Project for Unity 3D
PathProcessor.GraphUpdateLock Struct Reference

Prevents pathfinding from running while held. More...

Detailed Description

Prevents pathfinding from running while held.

Public Member Functions

 GraphUpdateLock (PathProcessor pathProcessor, bool block)
 
void Release ()
 Allow pathfinding to start running again if no other locks are still held. More...
 

Public Attributes

int id
 
PathProcessor pathProcessor
 

Properties

bool Held [get]
 True while this lock is preventing the pathfinding threads from processing more paths. More...
 

Constructor & Destructor Documentation

◆ GraphUpdateLock()

GraphUpdateLock ( PathProcessor  pathProcessor,
bool  block 
)

Member Function Documentation

◆ Release()

void Release ( )

Allow pathfinding to start running again if no other locks are still held.

Member Data Documentation

◆ id

int id

◆ pathProcessor

PathProcessor pathProcessor

Property Documentation

◆ Held

bool Held
get

True while this lock is preventing the pathfinding threads from processing more paths.

Note that the pathfinding threads may not be paused yet (if this lock was obtained using PausePathfinding(false)).


The documentation for this struct was generated from the following file: