route server with threadpool
This commit is contained in:
parent
0dfb8b1d26
commit
47b8369b26
4 changed files with 47 additions and 186 deletions
|
|
@ -186,6 +186,11 @@ public class RoutingEngine extends Thread
|
|||
}
|
||||
finally
|
||||
{
|
||||
if ( nodesCache != null )
|
||||
{
|
||||
nodesCache.close();
|
||||
nodesCache = null;
|
||||
}
|
||||
openSet.clear();
|
||||
finished = true; // this signals termination to outside
|
||||
}
|
||||
|
|
@ -195,7 +200,6 @@ public class RoutingEngine extends Thread
|
|||
{
|
||||
boolean oom_carsubset_hint = nodesCache == null ? false : nodesCache.oom_carsubset_hint;
|
||||
nodesMap = null;
|
||||
nodesCache = null;
|
||||
terminate();
|
||||
return oom_carsubset_hint ? "\nPlease use 'carsubset' maps for long-distance car-routing" : "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue