Better tracking of resources associated with pathfinding.

This commit is contained in:
JoelKatz
2013-09-26 10:26:15 -07:00
parent 5888f55bdd
commit 18fc854bf3
3 changed files with 10 additions and 2 deletions

View File

@@ -376,6 +376,8 @@ void PathRequest::updateAll (Ledger::ref ledger, bool newOnly, CancelCallback sh
{
std::set<wptr> requests;
LoadEvent::autoptr event (getApp().getJobQueue().getLoadEventAP(jtPATH_FIND, "PathRequest::updateAll"));
{
StaticScopedLockType sl (sLock, __FILE__, __LINE__);
requests = sRequests;