Skip to content

Commit

Permalink
Link TBB task_scheduler lifetime with Engine scope
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase committed Aug 29, 2017
1 parent 30c66ff commit de931cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/engine/engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include "util/fingerprint.hpp"
#include "util/json_container.hpp"

#include <tbb/task_scheduler_init.h>

#include <memory>
#include <string>

Expand Down Expand Up @@ -125,6 +127,7 @@ template <typename Algorithm> class Engine final : public EngineInterface
}
std::unique_ptr<DataFacadeProvider<Algorithm>> facade_provider;
mutable SearchEngineData<Algorithm> heaps;
tbb::task_scheduler_init task_scheduler;

const plugins::ViaRoutePlugin route_plugin;
const plugins::TablePlugin table_plugin;
Expand Down

0 comments on commit de931cf

Please sign in to comment.