Link TBB task_scheduler lifetime with Engine scope
This commit is contained in:
@@ -20,7 +20,7 @@ bool EngineConfig::IsValid() const
|
||||
unlimited_or_more_than(max_locations_trip, 2) &&
|
||||
unlimited_or_more_than(max_locations_viaroute, 2) &&
|
||||
unlimited_or_more_than(max_results_nearest, 0) &&
|
||||
max_alternatives >= 0;
|
||||
max_alternatives >= 0 && use_threads_number >= 1;
|
||||
|
||||
return ((use_shared_memory && all_path_are_empty) || storage_config.IsValid()) && limits_valid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user