Function AstarPath.LockGraphDataForWritingSync
LockGraphDataForWritingSync
()
Aquires an exclusive lock on the graph data.
Public
RWLock.LockSync LockGraphDataForWritingSync ()
Aquires an exclusive lock on the graph data.
This is used when graphs want to modify graph data.
This is a low-level primitive, usually you do not need to use this method.
var readLock = AstarPath.active.LockGraphDataForReading();
var handle = new MyJob {
// ...
}.Schedule(readLock.dependency);
readLock.UnlockAfter(handle);