A* Pathfinding Project  4.1.5
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
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.
 

Public Attributes

int id
 
PathProcessor pathProcessor
 

Properties

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

Constructor & Destructor Documentation

GraphUpdateLock ( PathProcessor  pathProcessor,
bool  block 
)

Member Function Documentation

void Release ( )

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

Member Data Documentation

int id
PathProcessor pathProcessor

Property Documentation

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: